aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/installer/vcxsrv.nsi
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2009-11-13 15:01:34 +0000
committermarha <marha@users.sourceforge.net>2009-11-13 15:01:34 +0000
commitc4fa5f94b72b3d837959c79e773615fe9bd3ca97 (patch)
tree6e8039948445cb64a6f0caff9f72fade34027d9c /xorg-server/installer/vcxsrv.nsi
parent1bcef59bbedd82ffa99250015337b2c5ca4dc0f2 (diff)
downloadvcxsrv-c4fa5f94b72b3d837959c79e773615fe9bd3ca97.tar.gz
vcxsrv-c4fa5f94b72b3d837959c79e773615fe9bd3ca97.tar.bz2
vcxsrv-c4fa5f94b72b3d837959c79e773615fe9bd3ca97.zip
Installer: also register the .xlaunch extension.
Diffstat (limited to 'xorg-server/installer/vcxsrv.nsi')
-rw-r--r--xorg-server/installer/vcxsrv.nsi18
1 files changed, 18 insertions, 0 deletions
diff --git a/xorg-server/installer/vcxsrv.nsi b/xorg-server/installer/vcxsrv.nsi
index 32f360f5e..330917ecc 100644
--- a/xorg-server/installer/vcxsrv.nsi
+++ b/xorg-server/installer/vcxsrv.nsi
@@ -89,6 +89,20 @@ Section "VcXsrv (required)"
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\VcXsrv" "NoModify" 1
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\VcXsrv" "NoRepair" 1
WriteUninstaller "uninstall.exe"
+
+ ; Register the xlaunch file extension
+ WriteRegStr HKCR ".xlaunch" "" "XLaunchFile"
+ WriteRegStr HKCR "XLaunchFile" "" "XLaunch Configuration"
+ WriteRegStr HKCR "XLaunchFile\DefaultIcon" "" "$INSTDIR\xlaunch.exe,0"
+ WriteRegStr HKCR "XLaunchFile\shell\open\command" "" '"$INSTDIR\XLaunch.exe" -run "%1"'
+ WriteRegStr HKCR "XLaunchFile\shell\open\ddeexec\Application" "" "XLaunch"
+ WriteRegStr HKCR "XLaunchFile\shell\open\ddeexec\Topic" "" "System"
+ WriteRegStr HKCR "XLaunchFile\shell\edit\command" "" '"$INSTDIR\XLaunch.exe" -load "%1"'
+ WriteRegStr HKCR "XLaunchFile\shell\edit\ddeexec\Application" "" "XLaunch"
+ WriteRegStr HKCR "XLaunchFile\shell\edit\ddeexec\Topic" "" "System"
+ WriteRegStr HKCR "XLaunchFile\shell\Validate\command" "" '"$INSTDIR\XLaunch.exe" -validate "%1"'
+ WriteRegStr HKCR "XLaunchFile\shell\Validate\ddeexec\Application" "" "XLaunch"
+ WriteRegStr HKCR "XLaunchFile\shell\Validate\ddeexec\Topic" "" "System"
InitPluginsDir
SetOutPath $PLUGINSDIR
@@ -159,6 +173,10 @@ Section "Uninstall"
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\VcXsrv"
DeleteRegKey HKLM SOFTWARE\VcXsrv
+ ; Register the xlaunch file extension
+ DeleteRegKey HKCR ".xlaunch"
+ DeleteRegKey HKCR "XLaunchFile"
+
; Remove files and uninstaller
Delete "$INSTDIR\vcxsrv.exe"
Delete "$INSTDIR\uninstall.exe"