InnoSetup Process exit codes

Hi

I am using the following code to register a .net dll into the registry.  When I compile and run it from Inno Setup interface I receive Process Exit code 100 and a Setup Exit Code of 0.  Please could you tell me where I am going wrong and what does a process exit code meant?

; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{41010CB2-D2FC-49E4-8129-39F0424FF6C8}
AppName=My Program
AppVerName=My Program 1.5
AppPublisher=My Company, Inc.
AppPublisherURL=http://www.example.com/
AppSupportURL=http://www.example.com/
AppUpdatesURL=http://www.example.com/
DefaultDirName={pf}\3w
DefaultGroupName=My Program
OutputBaseFilename=setup
OutputDir=C:\3W Encoded
Compression=lzma
SolidCompression=yes

[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"


[Files]
Source: "\aspose.pdf.dll"; DestDir: "{app}";

[Run]
Filename: "{dotnet20}\regasm.exe"; Parameters: "{app}\aspose.pdf.dll"; Description: "Register dll"; Flags: waituntilterminated


Thanks
RAJI




debugWindow.GIF
rajimuraliAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mirtheilSoftware DeveloperCommented:
The return code for regasm isn't in the screen shot you posted.  Can you repost that, perhaps as a text file?  Also, what happens if you run regasm after the install runs?  Doe regasm work correctly or does it return an error?  
What happens if you run the install outside of the InnoSetup compiler?  Does it return any errors?  Does the component get registered and does it work?  
0
rajimuraliAuthor Commented:
When I run regasm from command prompt it runs fine and registers the dll without any errors.  When I try to run through the InnoSetup compiler using the script I had attached, the dll does not get registered.

Attached is the screenshot of the regasm command from command prompt.

Thanks
Raji

dllCmdLineRegistry.GIF
0
mirtheilSoftware DeveloperCommented:
The return code for regasm isn't in the screen shot you posted.  Can you repost that, perhaps as a text file?
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

mirtheilSoftware DeveloperCommented:
Have you tried on other machines?  
0
rajimuraliAuthor Commented:

I have not tried this out on any other machine.  I will try and do so.

In the meanwhile, I am attaching 2 screenshots.  
One is the entire output from the debug window of InnoSetup.  I have highlighted the part where the regasm gets executed and also the Process exit code.

The second screenshot is the execution of the regasm from the command prompt.  Again the screenshot shows whatever output I am seeing.  There is no return code displayed when executed from command prompt.

Thanks
Raji

debugWindow.GIF
dllCmdLineRegistry.GIF
0
rajimuraliAuthor Commented:
Sorry I couldnt get text outputs.
Raji
0
mirtheilSoftware DeveloperCommented:
One more question, how did you determine that the registering didn't work when run through Inno?  I ran a test on a simple component here and didn't see any difference between the Inno register and a command line register.  
0
rajimuraliAuthor Commented:
After registering I ran my PHP script that was using the COM object and I got an error message.  I then registered the dll manually and then ran the same PHP script and it executed perfectly.  
0
rajimuraliAuthor Commented:
No Luck still.  Hope someone can help out with this issue.

Thanks

Raji
0
rajimuraliAuthor Commented:
ok.  I created a batch file to run the regasm and then it registers the dll successfully.  But I still have one problem which I would like to pass 2 parameters to the batch file.  One of the parameters I want to pass is something like c:\Program files\.... ie it has a space and hence the parameter gets truncated @ c:\Program.
Any ideas how to pass it without breaking would be great.

Thanks
Raji
0
rajimuraliAuthor Commented:
I managed to do this too.  Thanks for all the help.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Installation

From novice to tech pro — start learning today.