Re: Application is running before installer is finished



Hi,my Batch file does not run the VI. I specify the batch file in the App builder Installer> Advanced dialog Run executable after installation.(See screen shot).Normal behaviour is: (ie the way it has always been for me)1) installer installs LabVIEW exe2) removes back up files3) launches the batch file4) batch file runs, and then closes5) Installer prompts Finished and user closes the installer6)  The user then runs the applicationThe problem is the installer is now...1) installer installs labVIEW exe
2) removes back up files3) installer runs labVIEW exe and waits.... (So app in foreground and installer is in background) << Abnormal?4) user closes labVIEW exe
5) Installer continues and launches the batch file
6) batch file runs, and then closes
7) Installer prompts Finished and user closes the installer
8)  The user then runs the applicationSo I created a new build file without the batch file1) 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 exe7) Installer prompts Finished and user closes
8)  The user then runs the applicationMy Batch file:@Echo offREMREM *********************************************************************************************REM Installer.BatREMREM 6/3/06REM REM This Bat file is executed after install of LabVIEW software.REM Specify this bat file in Executable on the Advanced installer dialogueREM of the LabVIEW Application Builder.REMREM Prameters / Command Line Arguments: "[INSTALLDIR]" "[SourceDir]" "[ProductName]"REMREM Creates an ini file that hides the Root Window on the task barREM and disables Local Decimal symbol. REMREM Note you cannot have "&" in file or path names.REMREM *********************************************************************************************Echo Configuring Install. Please Wait.REM ***Parse Command Line Parameters***set InstallDir=%1REM Replace quotes (") with an empty stringset InstallDir=%InstallDir:"=%Echo Install Directory: %InstallDir%set SourceDir=%2REM Replace quotes (") with an empty stringset SourceDir=%SourceDir:"=%Echo Source Directory: %SourceDir%set ProductName=%3REM Replace quotes (") with an empty stringset ProductName=%ProductName:"=%Echo Product Name: %ProductName%@Echo offREM *** 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":EndNick,
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,


E. SulzerApplications EngineerNational Instruments
Message Edited by Nick on 03-16-2006 01:50 PM


Installer.png:
http://forums.ni.com/attachments/ni/170/173887/2/Installer.png
.



Relevant Pages

  • Re: Run Windows XP OS from DVD???
    ... How do I go about creating a windows Bootable DVD with the software I ... The installer creates the work folder that the files for the boot CD are placed in. ... One of the reason's I like the Hiren's Boot CD is because I have been able to have it recognize all the different types of USB storage devices I have plugged into it. ... I also created a 'common files directory' and a batch file to register DLLs and OCXs that were not a part of Hiren's Boot CD. ...
    (microsoft.public.windowsxp.general)
  • Re[2]: long filename issue in Win9x
    ... Please note that the batch file I mentioned earlier should only be ... Installer Technologyto Win9x): ... echo Incorrect program launch detected! ... P> @echo Incorrect program launch detected! ...
    (Bugtraq)
  • Re: How to execute a bat script every startup, even in SafeMode?
    ... Dave Patrick ....Please no email replies - reply in newsgroup. ... However, the installer ... extract the files anyway. ... In the batch file, ...
    (microsoft.public.win2000.registry)
  • Re: abc (musical notation) package by Enrico Gregorio
    ... program or batch file. ... I have Ghostscript and GSView ... (I used the PDF provided with the ProTeXt installer ... the Ghostscript and GSView programs are located. ...
    (comp.text.tex)
  • Re: Pack DirectShow application?
    ... > some OEM machines that are missing the AUTOEXEC.NT file (a batch file for ... AUTOEXEC.NT in such a way that the VS6 installer barfs. ... environment variables with FinalBuilder 3 (which is another great ...
    (microsoft.public.win32.programmer.directx.video)