Local user "Windows" directory - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

DKirk
Posts: 6
Joined: Fri Feb 09, 2007 7:03 pm

Local user "Windows" directory

How do I specify the directory called "WINDOWS" under the "Documents and Settings\[local user]\Windows" for Windows 2003, maybe Vista too? You'll find a local copy of win.ini in that directory.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Windows Installer does not have a predefined property for this folder. You need to create a "Property Based" folder. Here is how to do it:

Create a property in the "InstallParameters" page and name it MY_DIR for example. Switch to "Files and Folders" and create a "Property Based" folder with this property.

Now switch to "Custom Actions" page and create a "Property Set with Formatted" custom action under "InstallUISequence->Begin" section. Use following options for this custom action:
1. Property Name: MY_DIR (defined in the "InstallParameters" page)
2. Formatted Text: [%USERPROFILE]\Windows
3. Execution Condition: empty

Now drag & drop (while shift key is pressed) this custom action to "InstallExecutesSequence->Begin".

Let me know if you encounter any problems.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
slough
Posts: 6
Joined: Wed Aug 01, 2007 3:36 pm

profile property doesn't work with quiet install

I have done this and it works as long as I'm not doing a quiet install or limiting the interface in the msi package. If I do one of these installs, it will take the default value for the property. Is there a way to force it to use the %userprofile% property even with a quiet install?

Thanks,
Steve
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Steve,

Make sure you have done this:
Now drag & drop (while shift key is pressed) this custom action to "InstallExecutesSequence->Begin".
Let me know if the problem persist.

Regards,
Gigi
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com/
slough
Posts: 6
Joined: Wed Aug 01, 2007 3:36 pm

I have done this (although it was only under InstallUISequence and not both InstallUISequence and InstallExecuteSequence before) and it still does not take the userprofile path when I check "Limit to basic user interface". What should I be using for the value of my Property in the Install Parameters section? I have a default folder in there which is where the files are being installed to instead of the userprofile path under custom actions. I think I have to have something in the value for my property.
slough
Posts: 6
Joined: Wed Aug 01, 2007 3:36 pm

Nevermind, the copy that you mentioned worked. I had a similarly named msi file that I was clicking on (older version from before the copy). The fix was to have the custom action "Property Set with Formatted" under both InstallUISequence and InstallExecuteSequence. Thank you for your help.

Steve

Return to “Common Problems”