[font="trebuchet ms"]Hi,
[font="trebuchet ms"]
[font="trebuchet ms"]I have a question on the behaviour of the patch install and uninstall.
[font="trebuchet ms"]
[font="trebuchet ms"]As of my understanding, when we apply the patch, it will take a back up of the base files(which it is going to upgrade) and then install the patch files. Adn when the patch is uninstalled, it restores the original files from the back up.
[font="trebuchet ms"]
[font="trebuchet ms"]Say, if i am installing my application from a nework share, say 'X:'. Then I am applying patch on the appl., After some point of time the network drive is disconnected. Now, I am trying to uninstall the patch. That time it is asking for the original source??? until we give the source patch uninstallation is not proceeding??
[font="trebuchet ms"]
[font="trebuchet ms"]Is this the standard behaviour of the installer?? Also, If i browse the same file from a diff location, should it accept??
[font="trebuchet ms"]
[font="trebuchet ms"]Please help me out, as i am facing this problem in my patch to be released..
[font="trebuchet ms"]
[font="trebuchet ms"]Thanks
[font="trebuchet ms"]
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
No, the files it's creating are rollback files which are only used if the install fails. Once the install completes, the files are deleted. If you want to back-up and restore the files which the patch replaces, you'll need to create your own EXE or script to do that. Obviously, the Custom Action calls to the back-up and restore will need to be appropriately conditioned so that they only execute at the appropriate time.

For your specific question concerning source files being network-hosted, the obvious solution is to use UNCs instead of mapped drives.
Answered 07/22/2008 by: VBScab
Red Belt

Please log in to comment
0
Patches are funny, only certain files can be uninstalled when deploying a patch and in most cases you will find that the files you patch fall into the category of NOT being able to be uninstalled.

http://msdn.microsoft.com/en-us/library/aa372102(VS.85).aspx

The above link details what makes a patch uninstallable, which is pretty much everything :)

P
Answered 07/22/2008 by: Inabus
Second Degree Green Belt

Please log in to comment
0
[font="trebuchet ms"]Once the install completes, the files are deleted
[font="trebuchet ms"]
[font="trebuchet ms"]Hi Ian,
[font="trebuchet ms"]
[font="trebuchet ms"]Then, how is that the files are restored after the patch uninstall. From where these files are restored?
[font="trebuchet ms"]
[font="trebuchet ms"]Paul, the patch is getting uninstalled and also restoring the original files. But my problem is, it is asking for the source files(of the original appl).
Answered 07/22/2008 by: getIT
Orange Senior Belt

Please log in to comment
0
You need to re-read my response. It's the rollback files which get deleted.

As to files being restored, I'm not aware of ANY standard functionality in the Installer engine which, during an uninstall, restores files which were replaced during the install.

Are you sure this is a patch (an MSP)?

ORIGINAL: getIT
[font="trebuchet ms"]From where these files are restored?
ProcMon will show you.
Answered 07/22/2008 by: VBScab
Red Belt

Please log in to comment
0
[font="trebuchet ms"]Yes. it is a patch(msp) created from MsiMsp tool.
Answered 07/22/2008 by: getIT
Orange Senior Belt

Please log in to comment
0
In that case try:

http://msdn.microsoft.com/en-us/library/aa370841(VS.85).aspx

This details how and why a patch may require the original source :)

P
Answered 07/22/2008 by: Inabus
Second Degree Green Belt

Please log in to comment
Answer this question or Comment on this question for clarity