How to specify an arbitrary user-specific file? - 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!

cpdohert
Posts: 10
Joined: Tue Sep 16, 2008 5:28 pm

How to specify an arbitrary user-specific file?

I have successfully verified the instructions here:
http://www.advancedinstaller.com/user-g ... -file.html

I am trying to generalize this method so that I can specify an arbitrary file outside of the MSI at install time. I am doing this by setting a public property named CONFIGFILE and passing it to msiexec: msiexec /i setup.msi /qn CONFIGFILE="spark.cfg"

Per the instructions at http://www.advancedinstaller.com/user-g ... -file.html, I am using a property-based folder and File Copy/Move operation. I am using these values for the File Copy/Move:
Clipboard01.png
Clipboard01.png (16.85 KiB) Viewed 2176 times
The arbitrary config file is not moved from the SOURCEDIR, although it is correctly expanded and used for the registry entries and the post-install launch.

What is the correct syntax for this? Is this even possible to do in this manner?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: How to specify an arbitrary user-specific file?

Hi,

I'm afraid that the name of the source file cannot be formatted (it cannot use properties). This name is written as a text inside the MSI, therefore it can be set only to a hard-coded value (which may use wildcards).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”