PDA

View Full Version : Help with Success or Failure



jstatham
11-10-2011, 03:34 PM
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?

skolte
11-10-2011, 04:26 PM
Please refer to this article (http://kb.flexerasoftware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&externalId=Q101901&sliceId=1&docTypeID=DT_HOWTO_1_1&dialogID=118892325&stateId=0%200%20118886962).

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.

jstatham
11-11-2011, 01:25 PM
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.


Please refer to this article (http://kb.flexerasoftware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&externalId=Q101901&sliceId=1&docTypeID=DT_HOWTO_1_1&dialogID=118892325&stateId=0%200%20118886962).

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.

skolte
11-14-2011, 12:46 PM
It created the file for me just fine. It is located in C:\Windows with name setup.iss as shown below

9401

Please refer to the description in KB article (http://kb.flexerasoftware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&externalId=Q101901&sliceId=1&docTypeID=DT_HOWTO_1_1&dialogID=118892325&stateId=0%200%20118886962) 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.

jstatham
11-15-2011, 02:39 PM
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.

skolte
11-15-2011, 02:49 PM
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?