I'm a bit confused about the comment in [Code] section re: conditio...

Started by spick56, June 02, 2008, 10:01:53 PM

Previous topic - Next topic

Randem

If you placed Program Files in the exclude folder list it would not be searched. You need to tell InnoScript where you do not want it to search and where you do.
 
5) That is exactly why the Add Files tab is there.
 
8) That is the correct operations...
 
9) Never encounter this. The Search Folders tab is constantly being updated after each run so thing will be added and subtracted.

spick56

Just a few observations after excluding CR and .NET components from the script.
 
1) seeing that IS uses .NET project file for its information base, I was surprised to see IS assigning c:program files as the path of the main .exe/application in the [Files]  
2) I then found c:program files path checked in Search Folders so I unchecked it and ran Create Script again to find the same path being used in [Files] and the folder automatically checked in Search Folders
3) I also provided a proper search path for other dll's but they too were assigned c:program files path and off course Inno Setup wouldn't compile until I manually fixed the paths
4) If I remove c:program files entry from Search Folders it gets automatically reinstated on script creation; which I can understand if IS uses that path for other searches but then how can I specify the proper path to .exe and .dll files file?
5) one of my dll's actually uses a child dll however that child dll never got included in the script, nor did the application work, until I added it manually
8) if I select Beta then Beta template is automatically added, if I then change that to Release then release template is added; if I select None then Release is always added; not sure if that's right?
9) I may have been doing something wrong earlier in the piece but I got he feeling that sometimes entries from Search Folders were being lost/not shown but I'm not absolutely certain about that
 
Thanks
     /Michael

spick56

I'll look into Virtual PC 2007, and of course for now, try a few things more things with the script that you suggested earlier.
 
I'll let you know if/when I get stuck again.
 
Thanks for now.
 
/Michael

Randem

Ok, Vista sometimes does strange things for a Multi-thread OS (getting stuck in one thread).
 
Any check boxes you find in the installation on the components screen will work the same way. If checked they will be installed if not they won't. This gives the user an option in case of a re-install of your software they do not have to do a re-install of components that have already been installed.
 
Questions... That is exactly what the forum is for. No worries.
 
You should really use Virtual PC 2007 from Microsoft to test on so that you can start with a clean system every time.

spick56

Yes I have CR10 on my machine and I probably should have indicate NO. I though it wouldn't/shouldn't do any harm as other users may think the same and also say OK. I'll try it by saying No and see how it goes but thought it was interesting that it caused those problems, or at least (at this stage) I think it was that aspect but I'll still chase it further.
 
I used CR from your site but I'll also try the other one. There's a few issues happening so I'm also just trying to sift through them but all takes time and I also apologize if I'm bombarding you with too many things.
 
I'll do what you suggested and try going a bit further eliminating things, hopefully working down the list.
 
On the point of .Net or CR accessing the internet, I don't think it did but I can't be sure because at the time of losing desktop icons I think that I also may have lost internet connection. I'll keep an eye on that and work my way down the list.
 
Thanks for your prompt (and much appreciated) assistance.
 
/Michael

Randem

Did you mean that CR10 was already installed on your machine? If so you did not need to check the box and CR would not have been attempting an installation.
 
In the [Run] section switch the lines where .NET and CR are. I will change this in the next version. >NET should be installed before the CR installation.
 
Which CR did you attempt to install that gave you the behavior you mentioned, VB2005 or the one from our site? The CR or .NET installation may attempt to access the internet. Did your firewall tell you what URL was being accessed?

spick56

Sorry, I'll try again.
I've develped two VB2005 based DLL's and an executable for Vista environment that uses the tow DLL's and of course .Net Framework. The application also uses Crystal Reports 10 that come with VS2005.  
 
So all I want to do is create an installation package that will run on Vista and XP machines. I would like that package installer to determine if .NET 2.0 Framework is installed, and of course install it if it's not, and do similar for Crystal Reports 10, i.e. check if not already installed and do so if required. Below is the script that I've currently got.
 
I've got a bit more information on tying to install the package on my Vista maching (twice), sorry if it further confuses the issue but I thought that it may give you more ideas as to what may be happening.
1) After Inno Setup compiled the script and installation started, part of the way through I saw a 'install CR' checkbox on the Setup screen to which I indicated OK but was a bit confused in light of CR 10 being installed on my PC.
2) On two occasions my firewall gave me a message that installer was trying to communicate with iexplore, which I thought was reasonable.
3) After the 2nd iexplore warning I lost all my desktop icons but the applications that were running continued to do so however I couldn't invoke Start button (for example) but I could use Ctrl-Tab to switch between programs.
4) Towards the end of CR installation it appeared to be back tracking and then signalled end and I then launch the application.
 
I hope it helps and I welcome your comments.
 
Thanks,
     Michael
 
 
======================================================================================
; InnoScript Version 9.0  Build 6
; Randem Systems, Inc.
; Copyright 2003-2008
; Website:  https://randemsystems.com
; Support:  https://randemsystems.support
; OS: Windows NT 6.0 build 6001 (Service Pack 1)
 
; Date: June 03, 2008
 
;                  VB Runtime Files Folder:    
; Visual Basic .NET Project File (.vbproj):   C:\Users\michael\Documents\Visual Studio 2005\Projects\Project Pal\ProjectPal SW\ProjectPal\ProjectPal.vbproj
;     Inno Setup Script Output File (.iss):   C:\Users\michael\Documents\Visual Studio 2005\Projects\Project Pal\ProjectPal SW\ProjectPal\InnoScript\ProjectPal Setup-V1.0.b41 Beta.iss
;             Script Template Files (.tpl):   C:\Users\michael\AppData\Local\Randem Systems, Inc.\innoscript\Templates\Beta.tpl
 
[Setup]
AppId=ProjectPal Beta
 
;------------------------------------------------------------------------------------------------------------------------
; Taken from VBPROJ Project File Parameters Root Namespace, Root NameSpace Assembly Version and Company
;---------------------------------------------------------------------------------

Randem

The CR files have nothing to do with the code section.
 
It would help to post background information about what you are doing and with what version. I have to guess what you are using or doing and where things came from. Those first few lines in the script would have helped greatly.
 
The task line will call the code section to check to see if the .NET framework 2.0 is installed. I don't understand what you mean by I assume that I have to install it on my system before using the resultant script to modify the [Code] section. The script doesn't modify the code section and you don't need .net installed to check for it. ?????
 
Can what exist with the newer??? You can and should have .NET 1.1,2.0 and 3.0 installed on your system if you have done your MS Updates.

spick56

Hi,  
Sorry for being a 'bit' thick but I'm a 'bit' stuck. ;-)  
When I generate the script I get the following result (please note that I've removed some lines to reduce this post's size):  
 
[Tasks]  
Name: CRInstallation; Description: Install Crystal Reports Runtime Files; GroupDescription: Install CR Runtime Files:
Name: DotNetFrameWork; Description: Install .Net Framework; GroupDescription: Install .Net Framework:; Check: InstallDotNET20
.....  
 
[Run]  
Filename: msiexec.exe; Parameters: /package {tmp}CRX_NET_Redistribution.msi /passive; WorkingDir: {tmp}; Flags: skipifdoesntexist; Tasks: CRInstallation
Filename: {tmp}dotnetfx.exe; Parameters: /q:a /c: install /l /q; WorkingDir: {tmp}; Flags: skipifdoesntexist; Tasks: DotNetFrameWork
.....  
 
[Code]  
// To implement these calls they should be used in the Run Section on the line that runs the dotnetfx.exe  
// file. To use add to the line Check: InstallDotNET20  
.....
 
Question  
1) The comment in the [Code] section suggests that I should modify the line in [Run] section but from what I can see that is taken care of by the line in [Task] section therefore should I leave things as shown?  
2) I assume the line in [Tasks] will call InstallDotNET20 function in [Code] section to check presence of .Net Framework and install it but only if it doesn't exist in target or is older. Is that correct and if the target Framework is older can it coexist with the newer (being 2.0 in my case)?  
3) I've downloaded CRX_NET_Redistribution from your site but not yet installed it. I assume that I have to install it on my system before using the resultant script to modify the [Code] section. Is that correct?
 
/Michael