Question 1
Can AI copy or move specific files that are included with my app to a custom location that is different than the app install location (APPDIR)? If so, I have not been able to find a way.
For example, I created a “3rd-party” app that works with a program already installed. Let’s call that the main program. First, the user can install my App to any location they desire via the AI Folder Dialog. That works fine.
Once that is done several other files that are included are to be copied (moved actually), from the installed location to a sub-folder found on the main program. There can be several versions of the main program so I am using a custom search (INSTALL_PATH) which uses the registry to find the path of the main program.
I have tried the copy/move operation with now success. I have tried a Custom Action inline vbscript such as:
Set FSO = CreateObject("Scripting.FileSystemObject")
FSO.CopyFile Session.Property("APPDIR") & “*. DLL", Session.Property("INSTALL_PATH") & “SUBFOLDER1\SUBFOLDER2\SUBFOLDER3\"
I have also tried a custom action using an attached vbscript file using variations of the code above. And just to add I have searched these forums and read the User’s Guide before I submitted this.
Where am I going wrong?
Question 2
I want the user to select a Checkbox to determine which version of the main program they already have installed (this is not my App). Then I plan to use a VBscript IF THEN statement such as:
IF the Checkbox is “checked” AND the session.property(INSTALL_PATH) is true THEN…
(to install some of my files to that main apps location.)
What do I pass on to determine if the Checkbox has been checked? It appears it would be the Value property Selected=true? How would I state that?
Thank you for your time.