This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Is there a "keyword" for "Documents and Settings" folder?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 08, 2009
04:49 PM
Is there a "keyword" for "Documents and Settings" folder?
I want to write some InstallScript code to remove the C:\Documents and Settings\All Users\Start Menu\MyApp folder on XP and Vista computers, using the DeleteDir( ) function. However, the C:\Documents and Settings folder doesn't exist in Vista.
Does InstallScript have a reserve keyword for the C:\Documents and Settings\All Users\Start Menu\ folder? At first I thought the ALLUSERS parameter could be useful, but that parameter holds an integer value rather than a string.
How may I code this so that it will work on XP as well as Vista? I suppose I could check the OS version and do an if-else type construct, but surely there is a keyword available -- anyone know?
Does InstallScript have a reserve keyword for the C:\Documents and Settings\All Users\Start Menu\ folder? At first I thought the ALLUSERS parameter could be useful, but that parameter holds an integer value rather than a string.
How may I code this so that it will work on XP as well as Vista? I suppose I could check the OS version and do an if-else type construct, but surely there is a keyword available -- anyone know?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 08, 2009
06:01 PM
For an InstallScript project, there are FOLDER_PROGRAMS and FOLDER_STARTMENU; whether they refer to per-user or per-system depends on ALLUSERS...