LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to avoid program launch when installing

Hello,
 
I created a distribution kit for my application. When I install the application (run setup.exe), the program launches while the installer is still running. I do not want my program to be launched automatically. I just want it to be installed. How can I solve this problem? I looked at the installer options (in the Manage Distributions menu) but I don't see anything that can cause this automatic launch Smiley Sad
 
Wim
0 Kudos
Message 1 of 12
(4,669 Views)
CVI 8:
Build / Distribution / Edit / Files
Then Right Click on your exe file (bottom right rectangle) -> File Options. Deselect the Launch After Installation check box.

CVI 7:
If I remember well, Advanced Options and Select the exe file.
BR

Message 2 of 12
(4,662 Views)
Hi,
I'm using CVI8. That option is hidden pretty well Smiley Happy
 
Thanks a lot.
0 Kudos
Message 3 of 12
(4,659 Views)
You are 100% right.
80% of the time I spent for the migration from CVI 7.1 to CVI 8.0 concerns the creation of distribution kits. The 20% remaining being coffee breaks...

0 Kudos
Message 4 of 12
(4,654 Views)
Wim,

I'm sorry if it was not more obvious where to look for that option -- there are a lot of settings to pack into a relatively small amount of UI real estate.  Hopefully after using the new UI a bit, it will feel like a more natural place for those settings.

I was a bit confused as to how the option got checked inititally.  Was the distribution created from an existing, pre-8.0 distribution kit?  The launch after installation option is not checked by default, so if it was not manually checked (which would be hard to do if you had no idea where the check box was 🙂 ), the only thing I can think is that it was marked to be launched after installation in the original distribution settings.  That, or the .cds file was hand-editted.

Let me know if these scenarios don't explain the situation.  I'd be curious to know what happened.

Thanks.

Mert A.
National Instruments
Message 5 of 12
(4,640 Views)

Hello Mert A. and BR,

Thanks for your responses. I looked at the checkbox and it is not checked! So I really have no idea what causes my program to launch.

Actually, my progam is lauched twice. The first time in the beginning of the installation process (immediately after pressing the last 'Next' button). I think this is very strange since the application is not installed yet !? I immediatly close the launched application and then it launches again after the installation is finished (but before pressing the 'Finish' button.

Any idea what's going on?

Greetings,

Wim

0 Kudos
Message 6 of 12
(4,631 Views)
Hi Wim,

Well that's definitely confusing. 🙂 The easiest way to look into this is for you you zip up your built distribution (and your .cds file would be helpful, too) and post it here, if that is possible.  A few questions, too: Is the launching consistent?  If you create a new distribution with the same application, does it display the same behavior?  Have you seen this happen on more than one target machine?

Thanks.

Mert A.
National Instruments
0 Kudos
Message 7 of 12
(4,618 Views)
Hello Mert A.
 
I attached the cds file. I'm affraid I'm not allowed to attach the Distribution Kit, since the application is confidential.
I have seen the behaviour both on my machine (where I created the Distribution Kit) and on the machine in our labo. I created my distribution kit a few times but the behaviour remains the same Smiley Sad
0 Kudos
Message 8 of 12
(4,614 Views)
Wim,

There's nothing in the .cds file that would indicate the behavior you're seeing; it confirms that the file is not expected to be launched after installation, but it does not explain anything further.  I could help you further if you would post your merged.bin file (in the Volume1\supportfiles\ directory).  This file does not contain any of your application files or allow anyone to reproduce your application, so it should be okay to post.  It might also be helpful if you could create a debug log of your build, and post that too.  To do this, open a fresh instance of CVI, go to the edit dialog for your installer, make sure the focus is on the tab control (dotted box should be around one of the tab labels), then hit ctrl+shift+L.  This will turn on debug logging.  Now build your distribution, and the resulting file will be c:\Documents and Settings\Wim\Local Settings\Temp\distBuildDbg.log.

Thanks.

Mert A.
National Instruments
Message 9 of 12
(4,604 Views)
ss

Hello Mert A.

Thanks al lot for your help. I attached the files you asked for...

Wim

0 Kudos
Message 10 of 12
(4,583 Views)