cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Shuttledude
Level 7

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?
Labels (1)
0 Kudos
(1) Reply
RobertDickau
Flexera Alumni

For an InstallScript project, there are FOLDER_PROGRAMS and FOLDER_STARTMENU; whether they refer to per-user or per-system depends on ALLUSERS...
0 Kudos