Opse opsi Scrip to register service
This commit is contained in:
parent
7c3cba7df4
commit
8d76643ab8
@ -30,6 +30,12 @@ if (($INST_SystemType$ = "x86 System") and ($INST_architecture$ = "system specif
|
||||
sub_check_exitcode
|
||||
endif
|
||||
|
||||
comment "Unregister TrueCrypt Kernel Service"
|
||||
Winbatch_unregister_32
|
||||
sub_check_exitcode
|
||||
comment "Stop TrueCrypt Kernel Service"
|
||||
Winbatch_stop_32
|
||||
sub_check_exitcode
|
||||
comment "Delete files"
|
||||
Files_uninstall_32 /32Bit
|
||||
comment "Cleanup registry"
|
||||
@ -58,6 +64,12 @@ if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system spe
|
||||
sub_check_exitcode
|
||||
endif
|
||||
|
||||
comment "Unregister TrueCrypt Kernel Service"
|
||||
Winbatch_unregister_64
|
||||
sub_check_exitcode
|
||||
comment "Stop TrueCrypt Kernel Service"
|
||||
Winbatch_stop_64
|
||||
sub_check_exitcode
|
||||
comment "Delete files"
|
||||
Files_uninstall_64 /64Bit
|
||||
comment "Cleanup registry"
|
||||
@ -73,6 +85,12 @@ msiexec /x $MsiIdOld32$ /qb! REBOOT=ReallySuppress
|
||||
[Winbatch_uninstall_msi_32]
|
||||
msiexec /x $MsiId32$ /qb! REBOOT=ReallySuppress
|
||||
|
||||
[Winbatch_unregister_32]
|
||||
"%System%\sc.exe" delete truecrypt
|
||||
|
||||
[Winbatch_stop_32]
|
||||
"%System%\sc.exe" stop truecrypt
|
||||
|
||||
[Files_uninstall_32]
|
||||
; Example for recursively deleting the installation directory (don't forget the trailing backslash):
|
||||
;
|
||||
@ -84,6 +102,12 @@ msiexec /x $MsiIdOld64$ /qb! REBOOT=ReallySuppress
|
||||
[Winbatch_uninstall_msi_64]
|
||||
msiexec /x $MsiId64$ /qb! REBOOT=ReallySuppress
|
||||
|
||||
[Winbatch_unregister_64]
|
||||
"%System%\sc.exe" delete truecrypt
|
||||
|
||||
[Winbatch_stop_64]
|
||||
"%System%\sc.exe" stop truecrypt
|
||||
|
||||
[Files_uninstall_64]
|
||||
; Example for recursively deleting the installation directory:
|
||||
;
|
||||
|
@ -73,6 +73,14 @@ else
|
||||
ChangeDirectory "%SCRIPTPATH%"
|
||||
Winbatch_install_32
|
||||
Sub_check_exitcode
|
||||
comment "Register TrueCrypt Kernel Driver"
|
||||
Winbatch_register_32
|
||||
Sub_check_exitcode
|
||||
comment "Wait 5 Seconds for Register to finisch"
|
||||
sleepseconds 1
|
||||
comment "Start TrueCrypt Kernel Service"
|
||||
Winbatch_start_32
|
||||
Sub_check_exitcode
|
||||
comment "Copy files"
|
||||
Files_install_32 /32Bit
|
||||
comment "Patch Registry"
|
||||
@ -87,6 +95,14 @@ else
|
||||
ChangeDirectory "%SCRIPTPATH%"
|
||||
Winbatch_install_64
|
||||
Sub_check_exitcode
|
||||
comment "Register TrueCrypt Kernel Driver"
|
||||
Winbatch_register_64
|
||||
Sub_check_exitcode
|
||||
comment "Wait 5 Seconds for Register to finisch"
|
||||
sleepseconds 1
|
||||
comment "Start TrueCrypt Kernel Service"
|
||||
Winbatch_start_64
|
||||
Sub_check_exitcode
|
||||
comment "Copy files"
|
||||
Files_install_64 /64Bit
|
||||
comment "Patch Registry"
|
||||
@ -101,6 +117,13 @@ endif
|
||||
[Winbatch_install_32]
|
||||
msiexec /i "$Install32Msi$" /l* "$LogDir$\$ProductId$.install_log.txt" /qb! ALLUSERS=1 REBOOT=ReallySuppress
|
||||
|
||||
[Winbatch_register_32]
|
||||
"%System%\sc.exe" create truecrypt type= kernel start= system error= normal binPath= "System32\Drivers\truecrypt.sys" DisplayName= truecrypt
|
||||
|
||||
[Winbatch_start_32]
|
||||
"%System%\sc.exe" start truecrypt
|
||||
|
||||
|
||||
[Files_install_32]
|
||||
; copy the ini file to the InstallDir
|
||||
copy "$IniCfgFile$" "$InstallDir32$"
|
||||
@ -112,6 +135,13 @@ copy "$IniCfgFile$" "$InstallDir32$"
|
||||
[Winbatch_install_64]
|
||||
msiexec /i "$Install64Msi$" /l* "$LogDir$\$ProductId$.install_log.txt" /qb! ALLUSERS=1 REBOOT=ReallySuppress
|
||||
|
||||
[Winbatch_register_64]
|
||||
"%System%\sc.exe" create truecrypt type= kernel start= system error= normal binPath= "System32\Drivers\truecrypt.sys" DisplayName= truecrypt
|
||||
|
||||
[Winbatch_start_64]
|
||||
"%System%\sc.exe" start truecrypt
|
||||
|
||||
|
||||
[Files_install_64]
|
||||
; copy the ini file to the InstallDir
|
||||
copy "$IniCfgFile$" "$InstallDir64$"
|
||||
|
Loading…
Reference in New Issue
Block a user