03-14-2006 10:43 PM
03-15-2006 06:07 PM
Nick,
I'm a little confused by your question. So after installation, you are automatically running a batch file that edits the INI file and you are also running your VI? What actually launches these two applications? Does the installer launch them both? If you want to ensure that the execution order is always installer>>batch file>>VI, then why don't you launch the batch file at the end of the installer and then launch the VI at the end of the batch file?
Kind Regards,
03-15-2006 07:48 PM - edited 03-15-2006 07:48 PM
Hi,
my Batch file does not run the VI.So I created a new build file without the batch file
1) installer installs exe
2) removes back up files
3) installer runs labVIEW exe and waits.... (So app in foreground and installer is in background)
4) user closes labVIEW exe
7) Installer prompts Finished and user closes
8) The user then runs the application
My Batch file:
@Echo off
REM
REM *********************************************************************************************
REM Installer.Bat
REM
REM 6/3/06
REM
REM This Bat file is executed after install of LabVIEW software.
REM Specify this bat file in Executable on the Advanced installer dialogue
REM of the LabVIEW Application Builder.
REM
REM Prameters / Command Line Arguments: "[INSTALLDIR]" "[SourceDir]" "[ProductName]"
REM
REM Creates an ini file that hides the Root Window on the task bar
REM and disables Local Decimal symbol.
REM
REM Note you cannot have "&" in file or path names.
REM
REM *********************************************************************************************
Echo Configuring Install. Please Wait.
REM ***Parse Command Line Parameters***
set InstallDir=%1
REM Replace quotes (") with an empty string
set InstallDir=%InstallDir:"=%
Echo Install Directory: %InstallDir%
set SourceDir=%2
REM Replace quotes (") with an empty string
set SourceDir=%SourceDir:"=%
Echo Source Directory: %SourceDir%
set ProductName=%3
REM Replace quotes (") with an empty string
set ProductName=%ProductName:"=%
Echo Product Name: %ProductName%
@Echo off
REM *** Create an ini file that hides the root window & disables local decimal symbol.***
REM *** write the first line of the file as ***
del "%InstallDir%%ProductName%.ini"
echo [%ProductName%] > "%InstallDir%%ProductName%.ini"
echo HideRootWindow=True >> "%InstallDir%%ProductName%.ini"
echo useLocaleDecimalPt=False >> "%InstallDir%%ProductName%.ini"
REM ***delete this bat file that is copied to the install dir. NOTE NOTHING WILL WORK BELOW HERE EXCEPT LABELS***
del "%InstallDir%Install.bat"
:End
Nick,
I'm a little confused by your question. So after installation, you are automatically running a batch file that edits the INI file and you are also running your VI? What actually launches these two applications? Does the installer launch them both? If you want to ensure that the execution order is always installer>>batch file>>VI, then why don't you launch the batch file at the end of the installer and then launch the VI at the end of the batch file?
Kind Regards,
Message Edited by Nick on 03-16-2006 01:50 PM
03-16-2006 12:13 AM
03-16-2006 12:25 AM
03-16-2006 01:58 PM
05-09-2006 06:15 PM