Revisit Vista C\Users\Public\myfolder - 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!

Art
Posts: 6
Joined: Sun Jun 01, 2008 3:58 pm

Revisit Vista C\Users\Public\myfolder

Hi,
I am attempting to install a folder containing some files into Vista at C\Users\Public. I worked with the example given in this post:

http://www.advancedinstaller.com/forums ... ic+folders

When defining the Property Name on the "Install Parameters" page, I used the name "akpSoft" (my folder name). I do not know what Property Value is to be associated with the Property Name.

Also, is the Property Name supposed to be the name of the folder I want to insert ?

The msi faults stating the it can't find the Property Value on the network.

Thanks,

Art
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Revisit Vista C\Users\Public\myfolder

Hi,
When defining the Property Name on the "Install Parameters" page, I used the name "akpSoft" (my folder name)
Please note that private properties cannot pass their values from the InstallUISequence to the InstallExecuteSequence. Therefore, you should use a public property (its name contains only uppercase letters) for the folder.
I do not know what Property Value is to be associated with the Property Name.
This is explained in the forum thread you mentioned. The value of the property (which is a path) will be set by two custom actions based on the target operating system.
Also, is the Property Name supposed to be the name of the folder I want to insert ?
No, the name of the property is irrelevant. The complete path of your property-based folder is set by the two custom actions.
The msi faults stating the it can't find the Property Value on the network.
This is because the value of the property cannot be resolved to a valid path. Please add the two custom actions explained in the thread you mentioned and let me know if the problem persists.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Art
Posts: 6
Joined: Sun Jun 01, 2008 3:58 pm

Re: Revisit Vista C\Users\Public\myfolder

Thanks Cosmin,

Sorry to be so dense. I have a folder (akpsoft) containing two files that I would like AI to place in the \Users\Public folder.

I have followed the cookbook carefully but do not understand where to reference my folder and its two files. Using files and folders I did create an akpSoft folder and moved the files to it.

How now do I reference that akpSoft folder to be installed in the \Users\Public folder ?

Thanks, Art
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Revisit Vista C\Users\Public\myfolder

Hi Art,

Please note that you need to use a property-based folder not a regular one. Here are the steps for your case:
- go to the Install Parameters page and create a custom property
- set its name to AKPSOFT and its value to "C:\"
- go to the Files and Folders page
- create a property-based folder by using the custom property (AKPSOFT) and add your files in it
- go to the Custom Actions page
- show the "InstallUISequence" -> "Begin" standard action (you can use the "Show Standard Action" button on the toolbar)
- under "Begin" create a new "Property set with Formatted" custom action
- set the "Property Name" field to AKPSOFT (the property of the folder)
- set the "Formatted Text" field to [CommonAppDataFolder]akpSoft
- set the "Expression" field to VersionNT <> 600 (non Vista OS)
- under this custom action create another "Property set with Formatted" custom action
- for the new custom action set the "Property Name" field to AKPSOFT
- set the "Formatted Text" field to [WindowsVolume]Users\Public\akpSoft
- set the "Expression" field to VersionNT = 600 (for Vista)

Depending on the target OS, the AKPSOFT property-based folder will be resolved to a folder in "All Users\Application Data" or to a folder in "Users\Public"

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Art
Posts: 6
Joined: Sun Jun 01, 2008 3:58 pm

Re: Revisit Vista C\Users\Public\myfolder

Thanks Cosmin,

Everything works!
It seems the longer I fought the more confused I became. You are a patient man.

Art

Return to “Common Problems”