Issue with .NET script generation?

Started by Randem, May 20, 2011, 01:50:49 AM

Previous topic - Next topic

Randem

No, because that is not what the Release button is for...

philippe

True but something like this should work, shouldn't it?
 
if VB.NET then
    If Release Then
       Look for binrelease
    Else
       Look for bindebug
    Endif
Endif  
 
No sweat...Just food for thoughts...
 
Thanks again for your great support.
 
Phil

Randem

No, The release button is an InnoScript option only. It is not related to VB.NET... and there is no Release/Beta Option for VB6 or the other situations InnoScript handles.

philippe

Cool...This works...
However, from a usability standpoint, I would assume that pressing the Release button defaults to search the release version in \bin\release, without having to exclude the debug dir since it's a toggle on/off type thing..
 
French way of thinking  
 
Thanks again
 
Philippe

philippe


Randem

You need to tell InnoScript that it should not use that folder for searches by placing the folder in the Exclude Tab.

philippe

Better...Except that this one installs the EXE from bindebug whereas I specified Release in the Install Release Type section.

Randem

Ok, still making changes... Try this one.
 

philippe

Hmmm...Almost there but not yet...
Looks like everything is there, except the EXE file in the Files section.
 
Tested all. Uninstall works too.
 
See attached .iss file
 
Thx
 
Philippe
 
(Message edited by philippe on May 24, 2011)

Randem

Also the new Unsafe file should be used.
 

philippe

Replying to your second post: was using 10.5 build 3 at the time of the issue. Will update to build 8 then 9 and recheck Monday...
 
Thx
 
Philippe

Randem

An update to InnoScript:
 
 
 
Note: Should only be used after installing Innoscript 10.5 Build 8

Randem

Also if you are attempting to see the check box for the .NET installations, they will not occur if the .NET installation is already present. If you want to make the check box appear anyway then remove the check for the .NET installation in the [Tasks] section and it will always appear. Otherwise it will only appear when the .NET installation is not already installed on the target machine.
 
[Tasks]
Name: DotNetFramework35sp1; Description: Install .Net Framework; GroupDescription: .Net Framework:; Check: InstallDotNET35(1)
Name: DotNetFramework40; Description: Install .Net Framework; GroupDescription: .Net Framework:; Check: InstallDotNET40(0)
 
will be changed to:
 
[Tasks]
Name: DotNetFramework35sp1; Description: Install .Net Framework; GroupDescription: .Net Framework:;  
Name: DotNetFramework40; Description: Install .Net Framework; GroupDescription: .Net Framework:;

Randem

BTW: I did not see your script. The selections for the .NET installs are there in the script I generated. What version of InnoScript are you using?

Randem

Ok, There was an issue with the exe file entry being generated. try this version. Also you should be checking for unsafe files, using relative paths etc...