diff options
author | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-06-08 18:18:29 +0000 |
---|---|---|
committer | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2010-06-08 18:18:29 +0000 |
commit | e73913f7f2d00a26741b266ca29d5b45c5896651 (patch) | |
tree | c7b6d93354435288a11fc6c9db7ac14a776cfe1b /installer/settings/files_main_install.nsh | |
parent | 09809c48f227ffa2bb0fc3948b2ef336ab0110f5 (diff) | |
download | usdx-e73913f7f2d00a26741b266ca29d5b45c5896651.tar.gz usdx-e73913f7f2d00a26741b266ca29d5b45c5896651.tar.xz usdx-e73913f7f2d00a26741b266ca29d5b45c5896651.zip |
installer adjusted to config.ini detection
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2455 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r-- | installer/settings/files_main_install.nsh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/installer/settings/files_main_install.nsh b/installer/settings/files_main_install.nsh index a79d4991..10afc6f6 100644 --- a/installer/settings/files_main_install.nsh +++ b/installer/settings/files_main_install.nsh @@ -33,19 +33,19 @@ CreateDirectory $INSTDIR\plugins CreateDirectory $INSTDIR\covers
CreateDirectory $INSTDIR\songs
-${If} ${AtLeastWinVista}
+${If} $UseAppData == true
; Create folders in appdata for current user
SetShellVarContext current
- CreateDirectory $APPDATA\ultrastardx
- CreateDirectory $APPDATA\ultrastardx\screenshots
- CreateDirectory $APPDATA\ultrastardx\playlists
+ CreateDirectory $UserDataPath
+ CreateDirectory $UserDataPath\screenshots
+ CreateDirectory $UserDataPath\playlists
SetOutPath "$INSTDIR"
- CreateShortCut "screenshots.lnk" "$APPDATA\ultrastardx\screenshots"
- CreateShortCut "playlists.lnk" "$APPDATA\ultrastardx\playlists"
- CreateShortCut "config.ini.lnk" "$APPDATA\ultrastardx\config.ini"
+ CreateShortCut "screenshots.lnk" "$UserDataPath\screenshots"
+ CreateShortCut "playlists.lnk" "$UserDataPath\playlists"
+ CreateShortCut "config.ini.lnk" "$ConfigIniPath"
SetShellVarContext all
${EndIf}
|