Link to home
Start Free TrialLog in
Avatar of rajimurali
rajimurali

asked on

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
SOLUTION
Avatar of Mirtheil
Mirtheil
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rajimurali
rajimurali

ASKER

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
The return code for regasm isn't in the screen shot you posted.  Can you repost that, perhaps as a text file?
Have you tried on other machines?  

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
Sorry I couldnt get text outputs.
Raji
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.  
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.  
No Luck still.  Hope someone can help out with this issue.

Thanks

Raji
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
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial