简体   繁体   中英

How to set the folder name of the installation folder set to default even though directory has been changed in ISWIX?

I am using ISWIX plugin based on WIX to create Windows MSI Installer. I want to set the folder name of the installation folder to Manufacturer/MyAPPNAME. It works fine if the user doesn't change the directory. But if the user changes the directory then the MYAPPNAME folder name is not present in the text box representing the installation path. I want my installer to set the MyAPPNAME folder along with MANUFACTURER folder by default even if the user changes the installation directory. Is it possible?

I'm sure we could have a long, drawn out conversation about what's the best practice for these kinds of deployment decisions, but for now I'll just tell you how to do what you want to do...

You could add a custom action that fires after the user selects the install path and appends the "Manufacturer/MyAPPNAME" path.

CustomAction - Type:51 - Source:[INSTALLDIR] - Target:[INSTALLDIR][Manufacturer]\\[MyAPPNAME]

(This is assuming [INSTALLDIR] already has an ending path separator "\\")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM