correct install on win8 and add uninstall
This commit is contained in:
@@ -25,6 +25,10 @@ DefVar $OLD_VERSION$
|
||||
DefVar $OLD_CREATOR_TAG$
|
||||
DefVar $OLD_RELEASE$
|
||||
|
||||
DefVar $MSVersion$
|
||||
Set $MSVersion$ = GetMsVersionInfo
|
||||
|
||||
|
||||
Set $INST_SystemType$ = GetSystemType
|
||||
set $INST_architecture$ = GetProductProperty("install_architecture","system specific")
|
||||
|
||||
@@ -48,8 +52,8 @@ Set $LogDir$ = "%SystemDrive%\tmp"
|
||||
; no white space use '-' as a seperator
|
||||
Set $MinimumSpace$ = "1 MB"
|
||||
; the path were we find the product after the installation
|
||||
Set $InstallDir32$ = "%ProgramFiles32Dir%\<path to the product>"
|
||||
Set $InstallDir64$ = "%ProgramFiles64Dir%\<path to the product>"
|
||||
Set $InstallDir32$ = "%ProgramFiles32Dir%\Dokan\DokanLibrary"
|
||||
Set $InstallDir64$ = "%ProgramFiles32Dir%\Dokan\DokanLibrary"
|
||||
; ----------------------------------------------------------------
|
||||
|
||||
Set $IniCfgFile$ = "%ScriptPath%\opsi-" + $ProductId$ + ".ini"
|
||||
@@ -73,7 +77,11 @@ else
|
||||
Message "Installing " + $ProductId$ + " "+ $VERSION$ + "-" + $CREATOR_TAG$ + $RELEASE$ + " 32 Bit..."
|
||||
comment "Start setup program"
|
||||
ChangeDirectory "%SCRIPTPATH%"
|
||||
Winbatch_install_32
|
||||
if ( $MSVersion$ = "6.2" )
|
||||
Winbatch_install_compat_32
|
||||
else
|
||||
Winbatch_install_32
|
||||
endif
|
||||
Sub_check_exitcode
|
||||
comment "Copy files"
|
||||
Files_install_32 /32Bit
|
||||
@@ -87,7 +95,11 @@ else
|
||||
Message "Installing " + $ProductId$ + " "+ $VERSION$ + "-" + $CREATOR_TAG$ + $RELEASE$ + " 64 Bit..."
|
||||
comment "Start setup program"
|
||||
ChangeDirectory "%SCRIPTPATH%"
|
||||
Winbatch_install_64
|
||||
if ( $MSVersion$ = "6.2" )
|
||||
Winbatch_install_compat_64
|
||||
else
|
||||
Winbatch_install_64
|
||||
endif
|
||||
Sub_check_exitcode
|
||||
comment "Copy files"
|
||||
Files_install_64 /64Bit
|
||||
@@ -102,6 +114,12 @@ endif
|
||||
[Winbatch_install_32]
|
||||
"$InstallExe$" /S
|
||||
|
||||
[Winbatch_install_compat_32]
|
||||
reg.exe Add "HKCU\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "$InstallExe$" /d "WIN7RTM"
|
||||
"$InstallExe$" /S
|
||||
reg.exe Delete "HKCU\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "$InstallExe$" /f
|
||||
|
||||
|
||||
[Files_install_32]
|
||||
; copy the ini file to the InstallDir
|
||||
copy "$IniCfgFile$" "$InstallDir32$"
|
||||
@@ -113,6 +131,11 @@ copy "$IniCfgFile$" "$InstallDir32$"
|
||||
[Winbatch_install_64]
|
||||
"$InstallExe$" /S
|
||||
|
||||
[Winbatch_install_compat_64]
|
||||
reg.exe Add "HKCU\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "$InstallExe$" /d "WIN7RTM"
|
||||
"$InstallExe$" /S
|
||||
reg.exe Delete "HKCU\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "$InstallExe$" /f
|
||||
|
||||
[Files_install_64]
|
||||
; copy the ini file to the InstallDir
|
||||
copy "$IniCfgFile$" "$InstallDir64$"
|
||||
|
||||
Reference in New Issue
Block a user