Indigo Rose Software

Go Back   Indigo Rose Software Forums > MSI Factory 2.0 > MSI Factory 2.0 Discussion

Reply
 
Thread Tools Display Modes
  #1  
Old 07-23-2007
alexzfirm alexzfirm is offline
Forum Member
 
Join Date: Jul 2007
Posts: 69
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"
Reply With Quote
  #2  
Old 07-24-2007
alexzfirm alexzfirm is offline
Forum Member
 
Join Date: Jul 2007
Posts: 69
any ideas? I really do not want to write custom DLL for simple file removal...
Reply With Quote
  #3  
Old 07-24-2007
Brett's Avatar
Brett Brett is offline
Indigo Rose Staff Member
 
Join Date: Jan 2000
Posts: 2,001
You still use [ProgramMenuFolder] but also set the property ALLUSERS to "1". See http://msdn2.microsoft.com/en-us/library/aa367559.aspx
Reply With Quote
  #4  
Old 07-25-2007
alexzfirm alexzfirm is offline
Forum Member
 
Join Date: Jul 2007
Posts: 69
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?
Reply With Quote
  #5  
Old 07-26-2007
Lorne's Avatar
Lorne Lorne is offline
Indigo Rose Staff Member
 
Join Date: Feb 2001
Location: Indigo Rose Software
Posts: 2,588
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.
Reply With Quote
  #6  
Old 07-26-2007
alexzfirm alexzfirm is offline
Forum Member
 
Join Date: Jul 2007
Posts: 69
Quote:
Originally Posted by Lorne View Post
ALLUSERS. (Which a user can override on the command line when they run the .msi btw.)
What do you mean by "ALLUSERS" ? When I go to the File Operations \ Remove Files \ Folder list - there is no folder with name "ALLUSERS".

Quote:
Originally Posted by Lorne View Post
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)?
These shortcuts were made by non-MSI technology
Reply With Quote
  #7  
Old 07-26-2007
Lorne's Avatar
Lorne Lorne is offline
Indigo Rose Staff Member
 
Join Date: Feb 2001
Location: Indigo Rose Software
Posts: 2,588
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 ]]
Reply With Quote
  #8  
Old 07-26-2007
alexzfirm alexzfirm is offline
Forum Member
 
Join Date: Jul 2007
Posts: 69
Quote:
Originally Posted by Lorne View Post
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.")

As Brett already suggested, see:
http://msdn2.microsoft.com/en-us/library/aa367559.aspx
Ahh.... that ALLUSERS... That does not help me. I need access to the current user profile and all users profiles at the same time... Will have to write custom DLL then... Sad... I was trying to avoid that...
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


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.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software