tharmer
Posts: 7
Joined: Tue Oct 23, 2012 1:09 am

Need help authoring a patch

I have AI-installed apps with various version numbers out in the world. I'd like to be able to add a .dll and some associated files when one of the app users requests it. I'm having trouble determining how I can use AI to "Patch" these files on to any of the apps, regardless of their version number.

I've built and installed an app on my dev machine
Do I build another app with just the dll and associated files, then apply this second app as a patch to the first one? I'm just not sure how it works. I don't want to have to upgrade the entire target app, just add the dlls and files. I've read and re-read the tutorials and other related material but I still don't know how to proceed.

Thanks,
-terry
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Need help authoring a patch

Hi Terry,

A patch is the difference between two versions basically and you can't use it in the case you described.

Although it is not recommended, here's what you can try instead of a patch:
- create a new project and disable its "Register product with Windows Installer" option from the Product Details page
- implement the "How do I install some files in a folder of a previously installed application?" article for each targeted version
(you can use Component Location to retrieve the exact application folder for each target version)
- place your files in separate "Property Based Folders", a folder for each target version
- condition each folder's component from the Organization page with the name of its associated search

This way the files will be copied in the folders only if they are found on the target machine. Also, the version number will not be increased for your application in the Control Panel.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tharmer
Posts: 7
Joined: Tue Oct 23, 2012 1:09 am

Re: Need help authoring a patch

Thanks, Mihai

I'll try your suggestions. There may be as many as 20 of these dlls (with associated sets of files).

If the dll exists, I want to copy over it (would work like an update to the dll).
If the file doesn't exist (which will be the common case) I want to copy it to the folder.

I'm working on it now...I'll let you know how it goes.

-t
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Need help authoring a patch

Hello,
If the dll exists, I want to copy over it (would work like an update to the dll).
This is ensured by enabling a file's context menu -> Operations tab -> "Always overwrite existing file" option.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tharmer
Posts: 7
Joined: Tue Oct 23, 2012 1:09 am

Re: Need help authoring a patch

It's working perfectly. Thanks for your help.
-t
GeOpus
Posts: 9
Joined: Tue Aug 28, 2007 11:09 am

Re: Need help authoring a patch

Hi, i have a similar patch to make. But i have mainly 2 versions with the install path of the application stored in a different registry key path. Would it be possible for the patch to search for both registry key paths and store the result in the installation folder (at INSTALL PARAMETERS) ?

For both versions the same files have to copied.

ty.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Need help authoring a patch

Hello,

I'm afraid you should create separate property based folder for each of your registry search. Also, if you want to copy same files into multiple installation folders, then you can use our "File Duplication" feature in the "Files and Folders" page. You can add the files in the first folder and, then while pressing the "Shift" key, you drag and drop the files in the folders you want, creating duplicates for the files.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”