Running setup from IDE - problem

For all your non-technical questions.
Post Reply
jweksej
Posts: 93
Joined: Wed Sep 27, 2006 4:54 am

Running setup from IDE - problem

Post by jweksej »

From some moment in the past, in one project I can't start installer from IDE (Run->Run without debugging). IA gives me a message: "Please build your project before running without debugging". The same is for r"un with debugging" (slightly different message). Setup started directly works fine.
For the other project this functionality works ok. I'm trying to find the project setting responsible for it, but I failed. Do someone know what is going on?
CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Post by CandiceJones »

Hi,

Check if your build type is the same as the default project type, as the IDE will try to run the default project build type (even if you have built another type and that is available).
Candice Jones
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
jweksej
Posts: 93
Joined: Wed Sep 27, 2006 4:54 am

Post by jweksej »

The build type (Deployment->BuildSettings) is : Uncompressed Directory Layout
I can't find "default project type" in IDE and in help files. According to documentation UDL is used for debugging, then it should work, but doesn't
CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Post by CandiceJones »

The default build type is the value stored in Deployment -> Build Settings.
Are you using a compiler variable to change the output file name? That might also confuse the IDE, causing it to fail to find the built file.
Candice Jones
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
jweksej
Posts: 93
Joined: Wed Sep 27, 2006 4:54 am

Post by jweksej »

>Are you using a compiler variable to change the output file name?
yes
>That might also confuse the IDE, causing it to fail to find the built file.
yes, this was the reason. But it should be considered as a bug, because I can't use default and simply rename files after build, because the name is hardcoded in other files.

Is there workaround for this?
CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Post by CandiceJones »

Actually, there is no way for the IDE to know which compiler variable you may have last compiled your setup with, so the IDE plays it safe.

Your solution is to not use compiler variables in the custom output file field until you have debugged your setup.
Candice Jones
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Post Reply