Error that is causing InnoScript to crash

Started by randem, January 18, 2008, 11:12:55 AM

Previous topic - Next topic

Randem

Try this to see if this works
 
Filename: {src}Supportdotnetfx.exe; Parameters: /q:a /c: install /l /q; WorkingDir: {tmp}; Flags: skipifdoesntexist; Tasks: DotNetFrameWork

spick56

As part of playing with IS I also changed NT version setting and some other things and (I think) as part of those changes my Search Folders was altered. I've corrected that now and I don't get any IS errors.  
 
I've came across another bug that crashes IS by doing the following steps:
1) load .prj file and compile with .Net Framework checked
2) uncheck .Net Framework and recompile
3) check .Net Framework and recompile
4) unchecking .Net Framework the second time gives a message [color=0000ff]Run-time error '5' Invalid procedure or argument[/color] followed by IS crash.
 
I'm still stuck on the dotnetfx.exe issue, Inno Setup is still complaining about the following line:
 
[Run]
Filename: {src}\Support\dotnetfx.exe; Parameters: /q:a /c: install /l /q; WorkingDir: {tmp}; Flags: skipifdoesntexist; Tasks: DotNetFrameWork
 
It doesn't like the quotes on parameter Parameters. I've compared that line with one of your compilations above and the quotes appear in the same place so I'm a bit lost as to what the problem is. I'm running Inno Setup 5.2.2.
 
/Michael
 
P.S. I don't need this resolved today as I still have a number of other things to work on.

spick56

As part of playing with IS I also changed NT version setting and some other things and (I think) as part of those changes my Search Folders was altered. I've corrected that now and I don't get any IS errors.  
 
I've came across another bug that crashes IS by doing the following steps:
1) load .prj file and compile with .Net Framework checked
2) uncheck .Net Framework and recompile
3) check .Net Framework and recompile
4) unchecking .Net Framework the second time gives a message [color=0000ff]Run-time error '5'[/color] Invalid procedure or argument\black followed by a crash.
 
I'm still stuck on the dotnetfx.exe issue, Inno Setup is still complaining about the following line:
 
[Run]
Filename: {src}\Support\dotnetfx.exe; Parameters: /q:a /c: install /l /q; WorkingDir: {tmp}; Flags: skipifdoesntexist; Tasks: DotNetFrameWork
 
It doesn't like the quotes on parameter Parameters. I've compared that line with one of your compilations above and the quotes appear in the same place so I'm a bit lost as to what the problem is. I'm running Inno Setup 5.2.2.
 
/Michael
 
P.S. I don't need this resolved today as I still have a number of other things to work on.

Randem

BTW: What version of Crystal Reports are you using?

Randem

You need to download the framework you want to deploy. You can go download from the InnoScript main menu going to the Automatic Updater then go to the top of the web page to the right to find the .net downloads.
 
Did you tell InnoScript where the file was (Search Folders)?

spick56

Forget about my last post on dotnetfx.exe, I jumped the gun. I do get an error message though when compiling the script. Inno Setup gives me a an error saying Mismatched or misplaced quotes on parameter Parameters.
 
[Run]
Filename: {tmp}dotnetfx.exe; Parameters: /q:a /c: install /l /q; WorkingDir: {tmp}; Flags: skipifdoesntexist; Tasks: DotNetFrameWork
 
Also, I understood your point about not accessing files from System32 folder and that's why I placed MSCOREE.DLL in a seperate folder but even having done that Inno Script complained.
 
/Michael

spick56

Forgot about one more thing, where do I find dotnetfx.exe and should I always include it, i.e. check the .Net Framework box?

Randem

Yes, as I have stated the files cannot be in the system32 folder they have to be in another folder where InnoScript gets them from. This part is covered in the Manual. IT is UNSAFE...

spick56

You're right. I don't know how/why it got there but no wonder I couldn't add it to Search Folders. We're getting there.  
Now I don't get anything unusual happening while compiling IS but when I try to compile Inno Setup script I get Unsafe file detected: MSCOREE.DLL message.
 
So what do I do there because (I believe) I must include that DLL?  
 
/Michael

Randem

Also the reason the folder C:Usersmichael won't stay in the Search Folder Tab is because you also have that folder in the Exclude Tab and therefore it should not be searched. The logic is correct.

admin

files like mscoree.dll will be in your system32 folder. You just need to copy it to another folder and have InnoScript search there for the file.
 
Ok, now I have some direction with the Index issue. I will try to make it happen. 6-7 Minutes for a search. You should not have that many files to search for. The only reason it would take that long is because it cannot find those files and it has to search a large area to determine that it is not there.

spick56

I've tried the new (V8.0.4) package and have the following observations:
- I still can't add my application folder path but I can add some other folders such as C:Tmp, C:Usersdefault and C:UsersPublic.
- It appears that I can't add any folder that's part of C:Usersmichael. I've tried that a number of times and I get the same result.
- It appears that if I go to another window while IS is compiling then 1) I get the Index message, 2) cursor/mouse remains busy, 3) Inno Setup toolbar button is disabled. If however I don't change window focus then I don't get the Index message, cursor/mouse is normal and Inno Setup toolbar button is enabled.
 
I'm trying to resolve the 'missing files' issue so that IS compilation is much quicker (rather than now 6-7 minutes) so that I can easier try the above (and some other) scenrios.
 
By the way, where should I obtain mscoree.dll from?
 
/Michael

Randem

I did not send the trace version for that version does a lot more work that the normal version. I will send a trace version if we this doesn't solve the current problem.

spick56

Thanks. I'll try it immediately and let you know how it goes.  
Should I enable Trace?
 
/Michael

Randem