I'm sure this is a newb question, but I can't seem to find a direct answer anywhere. Basically, I'm creating the installer to deploy a plug-in for an existing application (AutoCAD) and I want the user to specify which version of the application they're using, and then pass this on so that a certain file will be created in the proper folder, but I can't get it to work and I have a nagging feeling that I'm missing something obvious.
Getting the UI element added to the installer went fine. My issue lies with accessing the data the user entered. I've added a custom event that assigns it to a parameter (targetVersion), but I can't figure out how to access that parameter during file creation.
I've got the vs installer project set up and I can make all of the files and registry entries I need to make, except this one. This one could be in one of three different folders:
[ProgramFiles64Foler]\Autodesk\AutoCAD 2025\Support
[ProgramFiles64Foler]\Autodesk\AutoCAD 2026\Support
[ProgramFiles64Foler]\Autodesk\AutoCAD 2027\Support
I did write a command-line executable (and specified that it is to run as an admin) to handle this file's creation that I called as a custom action during the commit stage, and while that worked on my dev computer, it inevitably results in a permission error on the test machine (a Windows 11 VM in VMWare with the AutoCAD software installed). The user on the test machine is an admin, so I'm not sure why that's happening and moved to trying to handle this with the installer.
Sorry for the long post, but I wanted to avoid the XY problem.