|
#1
|
|||
|
|||
|
Removing file/folder under \AllUsers folder?
What is the FolderID for following location (or any location under \All Users).
"C:\Documents and Settings\All Users\Start Menu\Programs\" My tests show that [ProgramMenuFolder] points to the current user Start Menu... and I would like to remove some files under "All Users" |
|
#2
|
|||
|
|||
|
any ideas? I really do not want to write custom DLL for simple file removal...
|
|
#3
|
||||
|
||||
|
You still use [ProgramMenuFolder] but also set the property ALLUSERS to "1". See http://msdn2.microsoft.com/en-us/library/aa367559.aspx
|
|
#4
|
|||
|
|||
|
Hmmm... But if I do that - how do I remove files/shortcuts under current user? I need to remove few files under both branches - current user and all users... Is there a sequence where I can set this variable value, remove few links, then set it to a different value, remove few other links, etc? Is there a sample script/sample project of that scenario?
|
|
#5
|
||||
|
||||
|
Windows Installer has some standard folder properties for common locations, namely CommonAppDataFolder, CommonFilesFolder, and CommonFiles64Folder. However I don't know of any built-in way to differentiate between the all users and current user start menu locations, other than using ALLUSERS. (Which a user can override on the command line when they run the .msi btw.)
You might be able to use a folder search to locate the all users path and use a remove file action to remove it. How did you install the shortcuts to both locations, btw? Were they created by the app itself? Or was it installed using a different installer technology (not MSI)?
__________________
--[[ Indigo Rose Software Developer ]] Last edited by Lorne; 07-26-2007 at 11:05 AM. |
|
#6
|
|||
|
|||
|
Quote:
These shortcuts were made by non-MSI technology |
|
#7
|
||||
|
||||
|
ALLUSERS isn't a folder. It's a Windows Installer property. Setting it to 0, 1 or 2 is what controls whether the Windows Installer will install everything for the current user, or for all users. (Also referred to as "per-user" and "per-machine.")
There are many different ways to set it. You can add a property named ALLUSERS in project settings and set its value to 0, 1, or 2. You can use a custom action. You can use the UserProfile dialog to let the user set it. You can set it on the command line, e.g. msiexec /i setup.msi ALLUSERS=1. As Brett already suggested, see: http://msdn2.microsoft.com/en-us/library/aa367559.aspx
__________________
--[[ Indigo Rose Software Developer ]] |
|
#8
|
|||
|
|||
|
Quote:
|
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| IF else statement | synistics | AutoPlay Media Studio 6.0 | 3 | 04-21-2007 01:33 PM |
| cookies | goukilord10 | AutoPlay Media Studio 5.0 | 6 | 05-20-2005 05:08 PM |
| INFO: The Explore Button on the Distribution Folder Dialog | Support | AutoPlay Media Studio 4.0 Examples | 0 | 10-11-2002 01:06 PM |
| Removing Shortcut Folder Prior To Install | Larry_Hale | Setup Factory 5.0 | 6 | 08-22-2001 11:57 AM |
| Removing a temp folder | Thief | Setup Factory 5.0 | 2 | 01-01-2001 07:05 PM |
All times are GMT -6. The time now is 03:56 AM.









Linear Mode

