** Header **
<appdefinition>
<file>[DATEINAME]</file>
<hash type="SHA256">[SHA256]</hash>
<info [fromFile="false"]>
	<company>[COMPANY]</company>
	<productName>[PRODUCTNAME]</productName>
	<productVersion>[VERSION]</productVersion>
	<setupType>NSIS/MSI/InnoSetup</setupType>
	<msiProductCode>{[PRODUCTCODE]}</msiProductCode>
	<languageID>ENU/DEU/whatever</languageID>
	<isX86>true</isX86>
	<hasUninstall>true</hasUninstall>
</info>

<install/>
<uninstall/>
<detection/>
<dependency/>
<dependency>
	<dependencyGroup name="Office Runtime">
		<application autoInstall="true" type="SHA256">C34E03C24EEA01F90D5796490F38822884DE7A7DA34232526E728FFC8073C2A1</application>
	</dependencyGroup>
</dependency>
<supersedence>
<deploymentType uninstall="false" type="SHA256">67C9594D2A51D6B1B52CC57CD7E1B320B491207C3680F811354185B71ED4D832</deploymentType>
</supersedence>
</appdefinition>

$env:temp

** Install **
EXE:Typ NSIS

LogDir:
$nsisLog=join-path $configToolkitLogDir ($installName + "_" + $appDeployToolkitName + "_" + $deploymentType + "_NSIS.log")

Show-InstallationProgress -StatusMessage "Installing $appName $appVersion. This may take some time. Please wait..."
Execute-Process -Path "Firefox Setup 38.2.1esr.exe" -Parameters "/INI=`"$inf`"" -WindowStyle Hidden

** Uninstall **
if ([IntPtr]::Size -eq 8) { $regPath="HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*" }
else {$regPath="HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*"}
(Get-ItemProperty $regPath | where {$_.DisplayName -like "*IrfanView*" -and $_.DisplayVersion -eq "4.38"})

