phaniraj
Posts: 14
Joined: Wed Nov 21, 2012 5:47 am

Post-install pre-requisite resume after system restart

Hi,

We are using Advanced Installer 9.6.1.

We have created 2 installers (Supported OS: 64 bit Vista,7 & 8)
1. Wrapper Installer for device drivers (ImperiumDrivers_x64.exe)
This installer installs 3 device drivers on the client machine.
2. Main Application installer
This installs services & other resources required by the main application.
This also run the above Wrapper installer (ImperiumDrivers_x64.exe) as post-install pre-requisite.

Both installers reboot behavior is set to:
Suppress reboot after install, except for ForceReboot options.

None of the device drivers prompt for reboot and main installer also does not require reboot.

Observed Behavior:

Main application installer successfully installs & post-install prerequisite (ImperiumDrivers_x64.exe) installation is started.
After post install prerequisite completes, the application is ready to use & all device drivers are successfully installed as well.
Application is able to communicate with devices and works as expected.
No problems here.

However, if the machine is restarted by the user after successful installation.
On restart, the post-install prerequisite (ImperiumDrivers_x64.exe) shows up in resume mode.

I noticed that there is a scheduled task created when post-install prerequisite installation starts.
This scheduled task seems to be kicking off the prerequisite installer in resume mode after the system restarts.

As I understand, the scheduled task might be created to resume installation if reboot was requested.
Since the installation was successful, shouldnt this task be removed?

Thanks
-Phani
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Post-install pre-requisite resume after system restart

Hi Phani,

I tested your scenario, but I couldn't reproduce the behavior. Can you please strip down your project to a basic size containing only some resources necessary to reproduce the issue and send it to me, so I can build it and study the issue? Otherwise, can you sent me another sample AIP file that reproduces the problem?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
phaniraj
Posts: 14
Joined: Wed Nov 21, 2012 5:47 am

Re: Post-install pre-requisite resume after system restart

Hi Esuebiu,

I will also try to replicate the issue with a stripped down version of the project & send over the AIP project to you in the next couple of days.

Thanks
-Phani
phaniraj
Posts: 14
Joined: Wed Nov 21, 2012 5:47 am

Re: Post-install pre-requisite resume after system restart

Hi Eusebiu,

I have created a sample project which mimics our application installer.

PostInstallTest_x64.exe installs a post-install prerequisite (ImperiumDrivers_x64.exe) which is URL prerequisite.
ImperiumDrivers_x64.exe is a wrapper installer which installs 3 drivers as feature-based pre-requisites.

Installation of PostInstallTest_x64.exe works fine.
Uninstall of PostInstall should uninstall the Imperium_Drivers as well. I think here we see some odd behavior.
I noticed that during uninstall of PostInstall, there are 2 scheduled tasks created.

First:
Task Name : {0A9F89D5-5E3A-4F9E-8EB4-507BB67DD708}

Trigger: At logon of any user

Command Action:
/i "C:\Windows\Installer\3cf49f.msi" AI_RESUME=1 REMOVE=DriverPackageInsta,DriverPackageInsta_1,MainFeature,TycoScottRFIDx64 REMOVE="ALL" PRIMARYFOLDER="APPDIR" ROOTDRIVE="D:\" AI_PREREQDIRS="C:\ProgramData\ScottSafety\prerequisites\ImperiumDrivers" PREREQSEARCH="1.0.2.5" PREREQSEARCH_1="1" PREREQSEARCH_2="1" TARGETDIR="D:\" APPDIR="C:\Program Files\ScottSafety\Imperium Drivers\" COMPANYNAME="Microsoft"

Second:
Task Name: {2C1532FD-30AA-4AFA-888D-20A8226AA971}

Trigger: At logon of any user

Command Action:
/i {2C1532FD-30AA-4AFA-888D-20A8226AA971} AI_RESUME=1 REMOVE=MainFeature,RequiredApplication ACTION="INSTALL" EXECUTEACTION="INSTALL" ROOTDRIVE="D:\" AI_PREREQDIRS="C:\ProgramData\ScottSafety\prerequisites" AI_INSTALL_MODE="Remove" PREREQSEARCH_6="1" APPDIR="C:\Program Files\ScottSafety\PostInstallTest\" COMPANYNAME="Microsoft" TARGETDIR="D:\"

After un-installation, the second scheduled task is removed but the first one remains.
If I understand it correctly, the first task is to resume installer on restart of the machine & log on of any user.

Can you point me on why this scheduled task is not removed after uninstall?

Attached is zip file with aip project & resources for the same.
We are using AI 9.6.1

Thanks
-Phani
Attachments
PostInstall.zip
(8.05 KiB) Downloaded 380 times
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Post-install pre-requisite resume after system restart

Hi Phani,

Thank you for all the information and the resources that you sent. I tested them and I was able to reproduce the behavior. Please give us some time to investigate this and we'll get back to you as soon as we have a conclusive answer.

By the way, is the "ImperiumDrivers_x64.exe" package created with Advanced Installer, too? If so, can you please send us its related AIP file, so we can investigate it, too? You can send it to support at advancedinstaller dot com if it contains confidential information.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
phaniraj
Posts: 14
Joined: Wed Nov 21, 2012 5:47 am

Re: Post-install pre-requisite resume after system restart

Hi Eusebiu,

Thanks for the quick turnaround.

is the "ImperiumDrivers_x64.exe" package created with Advanced Installer, too?

Yes, this exe package is also created using Advanced Installer 9.6.1

I will share the aip file through email.
Thanks
-Phani
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Post-install pre-requisite resume after system restart

Hi Phank,

Thank you for all the information shared with us. We will let you know about the results as soon as we have them.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”