cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jstatham
Level 4

Help with Success or Failure

I am working on an installs/updates that updates a Windows Service. The install stops the service if it is running and then lays down the new files then starts the service back up. After the install is complete I call a installscript custom actions that calls a C#.NET exe that send send a message to another computer letting them know the installation is complete. All that works fine but here is where the fun comes in. I need to run this installation in silent mode which I can do with command line params but Is thers a install properties that I can use to determine if the install had success or failure. I need to run my .NET exe send a status back of success or failre. So how should I approach this? Is there a property I can check like ERROR_INSTALL_FAILURE or INSTALL_SUCCESS? Or is there an easier way?
Labels (1)
0 Kudos
(5) Replies
skolte
Level 7

Please refer to this article.

You can use setup.log (ResponseResult section at the end of the article) or the result of SdFinish dialog to detect whether installation was successful.

You can use event such as OnFirstUIAfter(), OnEnd() to detect the result of installation and proceed with further steps accordingly.

In a service that I wrote a few years ago, I simply use OnEnd() event to update config files before restarting the service.
0 Kudos
jstatham
Level 4

I have tried the -r command line and the iss file never gerts created anywhere on the system. What am I missing or doing wrong.

skolte wrote:
Please refer to this article.

You can use setup.log (ResponseResult section at the end of the article) or the result of SdFinish dialog to detect whether installation was successful.

You can use event such as OnFirstUIAfter(), OnEnd() to detect the result of installation and proceed with further steps accordingly.

In a service that I wrote a few years ago, I simply use OnEnd() event to update config files before restarting the service.
0 Kudos
skolte
Level 7

It created the file for me just fine. It is located in C:\Windows with name setup.iss as shown below



Please refer to the description in KB article under '2. Generating response file' section. It clearly says

You have the option of letting InstallShield generate the response file for you. Simply run your setup with the Setup.exe -r command line parameter. InstallShield will record all your installation choices in Setup.iss and place the file in the Windows folder.
0 Kudos
jstatham
Level 4

I have tried running the -r and /r command several times and I have looked in c:\windows and well as searched the entire computer and the file is not created. Any other suggestions.
0 Kudos
skolte
Level 7

[LIST=1]
  • When you run the setup.exe -r using Command Prompt, are you launching the command prompt as an admin?

  • Does it launch the installer as expected?

  • Do you complete the installation successfully?

  • Does it create msi log for the installation? If it does, can you share the log?

  • Which operating system are you on?
  • 0 Kudos