LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a Autorun file using a Volume folder?

When I build an application the installer places the Setup.exe file in a Volume folder.  This is OK except I cannot get the Autorun.inf file to work.  I tried the string OPEN=\Volume\Setup.exe but this does not work.  Can someone tell me what string to use in the Autorun.ini file?
 
Alternatively and perhaps preferred, can someone tell me how to have the installer place the Setup.exe file in the root directory?  Moreover, I do not understand why there is a Volume folder because the built application is small enough to fit onto one CD.  In the Advanced category of the instller, the Enable media spanning is not checked.
 
I'm using Win-XP Pro and LV 8.2.1.
 
Thanks,
Dave J.
0 Kudos
Message 1 of 6
(8,992 Views)
Write a batch file to run the exe, get the autorun.ini to run the batch file.

Troy - CLD "If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument
0 Kudos
Message 2 of 6
(8,949 Views)
I tried that also.  The Autorun.ini file runs the batch file, but the batch file will not run the setup.exe file located in the Volume folder.  Why does the application builder place the setup.exe file in the Volume folder?
0 Kudos
Message 3 of 6
(8,930 Views)
Did you have a look at why your batch file didn't run setup.exe?
I always do a test with batch files by adding this to the end so I can see what happened... (if anything)...

PAUSE
dir *.bat

This will keep the batch file window open for you so see any error messages it shows up. For some reason the 'pause' doesn't work unless the is a command after it. Thus the 'dir *.bat' at the end.

I think the app builder puts everything into a volume folder just in case you need to span your distribution across a number of CDs. Then you'd get a few volume folders I'd imagin.

You can just move everything out of the volume folder into your CD root directory... that's what I usually do. Then the autorun.ini should have no problem running it.
It should be able to run exe's from a subfolder too, so I don't what is going on there.

Message Edited by Troy Kujawski on 05-24-2007 11:01 AM

Troy - CLD "If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument
0 Kudos
Message 4 of 6
(8,916 Views)
Hello,
I think the problem is the leading backslash before the directory name. So "open=Volume\setup.exe" should work.
Greets, dave
Greets, Dave
Message 5 of 6
(8,895 Views)
Removing the first backslash fixed the problem.  I had tried this earlier and for whatever reason it didn't work.  I must have done something wrong.  Thank you for your response.
 
Dave J.
0 Kudos
Message 6 of 6
(8,867 Views)