[Setup]
SetupTitle=QNAP NetBak Replicator
ProductName=QNAP NetBak Replicator
Version=3.0.0
;UninstallProgram=qnapuninstall.exe
UninstallKey=QNAP_NASNetBak
AskPath=FALSE
AskType=FALSE
AskProgramFolder=FALSE
Restart=FALSE

[Update Driver]

[Copy Files]
Win9X\NetBak.exe=%20%"\QNAP\NetBak"
NetBak_CHS.mht=%20%"\QNAP\NetBak"
NetBak_CHT.mht=%20%"\QNAP\NetBak"
NetBak_DEU.mht=%20%"\QNAP\NetBak"
NetBak_ENG.mht=%20%"\QNAP\NetBak"
NetBak_ESP.mht=%20%"\QNAP\NetBak"
NetBak_FRA.mht=%20%"\QNAP\NetBak"
NetBak_ITA.mht=%20%"\QNAP\NetBak"
NetBak_JPN.mht=%20%"\QNAP\NetBak"
NetBak_KOR.mht=%20%"\QNAP\NetBak"
NetBak_RUS.mht=%20%"\QNAP\NetBak"
logo.bmp=%20%"\QNAP\NetBak"
qnapuninstall.exe=%11%


[Create Shortcut]
; x = name, path, mode, subpath, shortcut name, icon, param, description
; mode: 0 = desktop, 1 = start menu, 2 = program menu
; subpath = path name for program menu (only valid when mode = 2)
; NOTE: shortcut name need to be unique OR the uninsatllation of the first one will not be performed. 
1=Netbak.exe, %20%"\QNAP\NetBak", 0, , "QNAP NetBak Replicator", 0
2=Netbak.exe, %20%"\QNAP\NetBak", 2, %ProgramMenuName%"\NetBak Replicator", "NetBak Replicator", 0
3=qnapuninstall.exe, %11%, 2, %ProgramMenuName%"\NetBak Replicator", "Uninstall NetBak Replicator", 0, QNAP_NASNetBak


;[Run Programs]
[Run Program After Installation]
; program_name=program_path, working_folder, parameters...
; default:
;	program_path = setup_program_path
;	working_folder = program_path
NetBak.exe=%20%"\QNAP\NetBak",,


[Kill Programs]
1=QNAPNetBakReplicatorClass, NetBak Replicator

[Add Registry]
; the first param is used for deciding whether to create uninstall shared registry or not
1=0, HKLM, %SystemUninstallKey%\%UninstallKeyName%\CloseWindows\Netbak.exe, Class, 0, QNAPNetBakReplicatorClass
2=0, HKLM, %SystemUninstallKey%\%UninstallKeyName%\CleanRegs\HKEY_LOCAL_MACHINE, "Software\QNAP", 0, ""
3=0, HKLM, %SystemUninstallKey%\%UninstallKeyName%\DeleteRegs\HKEY_CURRENT_USER, "Software\QNAP\NetBak", 0, ""
4=0, HKLM, %SystemUninstallKey%\%UninstallKeyName%\CleanRegs\HKEY_CURRENT_USER, "Software\QNAP", 0, ""
5=1, HKLM, %SystemRunKey%, %RunKeyName%, 0, ""%20%"\QNAP\NetBak\NetBak.exe /min"

[Strings]
UninstallKeyName="QNAP_NASNetBak"
SystemUninstallKey="Software\Microsoft\Windows\CurrentVersion\Uninstall"
RunKeyName="QNAP_NASNetBak"
SystemRunKey="Software\Microsoft\Windows\CurrentVersion\Run"
ProgramMenuName="QNAP Storage Software"
