create menu entries and desktop icon

This commit is contained in:
Mario Fetka 2014-03-08 07:50:30 +01:00
parent 52a54e85b2
commit 098312d72e
2 changed files with 62 additions and 44 deletions

View File

@ -103,16 +103,12 @@ del -sf "$InstallDir64$\"
; deletekey [HKEY_LOCAL_MACHINE\Software\$ProductId$]
[LinkFolder_uninstall]
; Example of deleting a folder from AllUsers startmenu:
;
; set_basefolder common_programs
; delete_subfolder $ProductId$
;
; Example of deleting a shortcut from AllUsers desktop:
;
; set_basefolder common_desktopdirectory
; set_subfolder ""
; delete_element $ProductId$
set_basefolder common_programs
delete_subfolder "OpenVPN Manager"
set_basefolder common_desktopdirectory
set_subfolder ""
delete_element "OpenVPN Manager"
[Sub_check_exitcode]
comment "Test for installation success via exit code"

View File

@ -80,7 +80,7 @@ else
comment "Patch Registry"
Registry_install /32Bit
comment "Create shortcuts"
LinkFolder_install
LinkFolder_install32
endif
if ($INST_SystemType$ = "64 Bit System") and (($INST_architecture$ = "system specific") or ($INST_architecture$ = "both") or ($INST_architecture$ = "64 only"))
@ -94,7 +94,7 @@ else
comment "Patch Registry"
Registry_install /64Bit
comment "Create shortcuts"
LinkFolder_install
LinkFolder_install64
endif
endif
@ -131,39 +131,61 @@ copy -s "%ScriptPath%\ALL\*.*" "$InstallDir64$"
; set "name2" = REG_DWORD:0001
; set "name3" = REG_BINARY:00 af 99 cd
[LinkFolder_install]
; Example of deleting a folder from AllUsers startmenu:
[LinkFolder_install32]
set_basefolder common_programs
delete_subfolder "OpenVPN Manager"
set_basefolder common_programs
set_subfolder "OpenVPN Manager"
;
; set_basefolder common_programs
; delete_subfolder $ProductId$
;
; Example of creating an shortcut to the installed exe in AllUsers startmenu:
;
; set_basefolder common_programs
; set_subfolder $ProductId$
;
; set_link
; name: $ProductId$
; target: <path to the program>
; parameters:
; working_dir: $InstallDir$
; icon_file:
; icon_index:
; end_link
;
; Example of creating an shortcut to the installed exe on AllUsers desktop:
;
; set_basefolder common_desktopdirectory
; set_subfolder ""
;
; set_link
; name: $ProductId$
; target: <path to the program>
; parameters: <some_param>
; working_dir: $InstallDir$
; icon_file: <path to icon file>
; icon_index: 2
; end_link
set_link
name: "OpenVPN Manager"
target: "$InstallDir32$\OpenVPNManager.exe"
parameters:
working_dir: $InstallDir32$
icon_file:
icon_index:
end_link
set_basefolder common_desktopdirectory
set_subfolder ""
set_link
name: "OpenVPN Manager"
target: "$InstallDir32$\OpenVPNManager.exe"
parameters:
working_dir: $InstallDir32$
icon_file:
icon_index:
end_link
[LinkFolder_install64]
set_basefolder common_programs
delete_subfolder "OpenVPN Manager"
set_basefolder common_programs
set_subfolder "OpenVPN Manager"
set_link
name: "OpenVPN Manager"
target: "$InstallDir64$\OpenVPNManager.exe"
parameters:
working_dir: $InstallDir64$
icon_file:
icon_index:
end_link
set_basefolder common_desktopdirectory
set_subfolder ""
set_link
name: "OpenVPN Manager"
target: "$InstallDir64$\OpenVPNManager.exe"
parameters:
working_dir: $InstallDir64$
icon_file:
icon_index:
end_link
[Sub_check_exitcode]
comment "Test for installation success via exit code"