View Full Version : ProgramMenuFolder
08-25-2004, 06:26 AM
in what moment ProgramMenuFolder property is set? I mean,
what action sets it?
I have a CustomAction which sets ALLUSERS property to 1. I have it in the beginning of the InstallExec sequence.
but when I run silent installation, the ProgramMenuFolder is set not to C:\Documents and Settings\AllUsers\Start Menu\Programs\ but to
C:\Documents and Settings\mariapr\Start Menu\Programs\, e.g. to the current user profile.
if I set the ALLUSERS property through command line, all works OK.
is there any explanation? thanks...
08-25-2004, 12:44 PM
During CostFinalize action. For further information, please look up Directory table on MSDN (http://msdn.microsoft.com/).
08-26-2004, 02:20 AM
TsungH, thank you, I know that the directories are set when the CostFinalize action is performed.
I just cannot understand why this property is set to CurrentUser profile instead of AllUsers. it is said in MSDN:
"The installer sets the ProgramMenuFolder property to the full path to the Program Menu folder for the current user. If an "All Users" profile exists and the ALLUSERS property is set, then this property is set to the folder in the "All Users" profile. "
I set the ALLUSERS property with a CA which us executed just in the beginning of InstalLExec Seq., actually ALLUSERS property is set BEFORE CostFinalize Action, it is the 2nd action in the sequence. alas, ProgramMenuFolder is set to current user's profile.
if I set ALLUSERS by a command line, or just add it to he msi database, ProgramMenuFolder is set to AllUser's profile.
it can be a solution to my problem, but the problem just tricks me because I don't quite inderstaņā why is it so... :) Maria
08-26-2004, 10:38 AM
It appears to be something with your custom action. You will want to log your installation and determine if the custom action gets executed in Execute Sequence. You may also want to verify the value of ALLUSERS after setting it in the custom action to confirm it's set correctly.
08-27-2004, 01:37 AM
thank you. i will try to investigate it...
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.