Hey, I wanted to try SubWiji today for the first time, but I can't get it to run. I'm fairly skilled on the Microsoft side so I tried to do a bit of troubleshooting:
Powershell: Detect which .NET FW Versions are installed- Code: Select all
function Test-Key([string]$path, [string]$key)
{
if(!(Test-Path $path)) { return $false }
if ((Get-ItemProperty $path).$key -eq $null) { return $false }
return $true
}
function Get-FrameworkVersions()
{
$installedFrameworks = @()
if(Test-Key "HKLM:\Software\Microsoft\.NETFramework\Policy\v1.0" "3705") { $installedFrameworks += ".NET FW 1.0" }
if(Test-Key "HKLM:\Software\Microsoft\NET Framework Setup\NDP\v1.1.4322" "Install") { $installedFrameworks += ".NET FW 1.1" }
if(Test-Key "HKLM:\Software\Microsoft\NET Framework Setup\NDP\v2.0.50727" "Install") { $installedFrameworks += ".NET FW 2.0" }
if(Test-Key "HKLM:\Software\Microsoft\NET Framework Setup\NDP\v3.0\Setup" "InstallSuccess") { $installedFrameworks += ".NET FW 3.0" }
if(Test-Key "HKLM:\Software\Microsoft\NET Framework Setup\NDP\v3.5" "Install") { $installedFrameworks += ".NET FW 3.5" }
if(Test-Key "HKLM:\Software\Microsoft\NET Framework Setup\NDP\v4\Client" "Install") { $installedFrameworks += ".NET FW 4.0 Client Profile" }
if(Test-Key "HKLM:\Software\Microsoft\NET Framework Setup\NDP\v4\Full" "Install") { $installedFrameworks += ".NET FW 4.0 Full Profile" }
return $installedFrameworks
}
Output:
PS C:\> Get-FrameworkVersions
.NET FW 2.0
.NET FW 3.0
.NET FW 3.5
.NET FW 4.0 Client Profile
.NET FW 4.0 Full Profile
Powershell: Operating system information- Code: Select all
Get-WmiObject win32_operatingsystem | select Caption, CSDVersion, OSArchitecture, Version, MUILanguages
Output:
Caption : Microsoft Windows 7 Professional
CSDVersion : Service Pack 1
OSArchitecture : 64-Bit
Version : 6.1.7601
MUILanguages : {de-DE}
The error I run into is the following:
- Code: Select all
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of C:\Users\User\Downloads\SubWiji.application resulted in exception. Following failure messages were detected:
+ File, NAudio.dll, has a different computed hash than specified in manifest.
ERROR DETAILS
Following errors were detected during this operation.
* [06.04.2013 15:35:04] System.Deployment.Application.InvalidDeploymentException (HashValidation)
- File, NAudio.dll, has a different computed hash than specified in manifest.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.ComponentVerifier.VerifyFileHash(String filePath, Hash hash)
at System.Deployment.Application.ComponentVerifier.VerifyFileHash(String filePath, HashCollection hashCollection)
at System.Deployment.Application.ComponentVerifier.VerifyComponents()
at System.Deployment.Application.DownloadManager.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification notification, DownloadOptions options)
at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
The program itself lands in C:\Users\%Username%\AppData\Local\Temp\Deployment as expected from these ClickOnce setups. But in my case deletes itself when it runs into the error above.