nilesh_bahirshet
Posts: 53
Joined: Mon Sep 08, 2008 3:09 pm

Error in patch update of .exe . . .

I trying to build only .exe file of my application by using option
1) Media -> Bootstrapper -> Include Install files in .exe

so only .exe file is created. fine...

after that I have also created the patch of my application using same procedure except changing the version of my application,
another .exe I have sucsessfully created.fine...

for patch I extract the .msi file using the /extract method as you have provided.I create the path in .msp file
fine ...

then I create the updation project and creates the updater file.

I put the both updater.txt and .msp file on my web server

then I check for the updates

.aiu and .msp files copied succsessfully on desired path
Problem begins here

1)after coping .aiu and .msp files the dialog box comes and ask for
"The feature you trying to use is on a network resuorce is unavilabe.
"Click oK to try or enter the path to a folder containing the installation package "XYZ.msi" in box below".

Q : which path should I give for that .msi ? as I am using that package which conatins only .exe ?
Q: On clients PC after installation of application using only .exe whether .msi file is created ?

2) An installer package for the Product "XYZ" can not be found. Try the installtion package again using a valid copy of the installtion package "XYZ.msi"

Q : I have give only package which conains only .exe not .msi ..
so how can I do update of my pllication when I delver only .exe to client not .msi ?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Error in patch update of .exe . . .

Hi,

You are encountering this behavior because the patch needs to repair the installation before it is applied. Since the repair process needs the original package, Windows Installer will try to find it. However, your package is included in the EXE and it is extracted only when the installation runs. Therefore, you need to make sure that it will remain on the target machine after the install is complete.

For this you can follow these steps:
- go to the "Media" page
- select the "Bootstrapper" tab
- check the "Do not delete extracted MSI and CAB files" option

This way, when the patch runs it should find the MSI required for the repair.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
honce
Posts: 3
Joined: Fri Aug 15, 2008 12:41 am

Re: Error in patch update of .exe . . .

I've picked up a project from a past employee that has been shipping the msi embedded in the setup.exe without this option set. Is there anyway for me "fix" existing installs to allow a patch to work?

Additional scripting outside of the windows installer would be fine for a one time fixup. I'm trying to get to the point where I can drop patches every 2 weeks. It would be great to get there without having to do another full upgrade.

TIA for any advice you may have.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Error in patch update of .exe . . .

Hi,

Since the installation files are not on the target machine, a patch may always prompt for them. Somehow, the installation files should be accessible when the patch is applied. Therefore, a good solution would be to deploy a major upgrade which uses the "Do not delete extracted MSI and CAB files" option (I'm afraid that there aren't many options to fix this).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”