LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to avoid the user selecting a different path in my installer

Solved!
Go to solution

Hello again all you helpful forum-goers!

 

I have an application and a corresponding installer, and then I have a separate installer putting some support files in the same directory.  My problem is that if the user selects a different path to which to install my primary application, the secondary installer will not put the required support files in the same spot.

 

Now, I think I've figured out how to get the user-selected path from the "Run executable at the end of installation" option in the Advanced pane of the LabVIEW installer configuration, and I can pass that in to my secondary installer, and that should fix the problem.  However, what I'd really like to do is just not give the user the option to install my primary application in a different directory to begin with.  I've looked, but cannot find any way to do that.

 

Does anyone know of any way to not present the option to install an application in a different directory when using the LabVIEW installer?

 

Thanks in advance for any suggestions,

 

-Joe

0 Kudos
Message 1 of 3
(2,212 Views)
Solution
Accepted by topic author jmorris

In the setup.ini file of the installer change the value of SingleDirectory to 0, the installer will skip the Destination Directory page.

 

Ben64

Message 2 of 3
(2,207 Views)

Ben64,

 

That's great!  Thank you so much for your quick reply.  The only reason I haven't already accepted that as my solution is that it requires a manual post-compile change to a text file.  Ideally I'd prefer not to have to remember to do that every time I rebuild my installer.  Is there any way that you know of to automate the process?

 

If not, I'm happy to have a good solution even if it takes an extra step each time to implement.

 

-Joe

0 Kudos
Message 3 of 3
(2,196 Views)