I have a commercial application that is about 7 megs total for the downloadable installer .exe. It also has two additional web blocks for the .net framework and Windows Installer. My problem is that I need to fix a small bug in the version 1.01 code. I have created a version 1.02 that has the fix in it. I built the installer project, added a reference to the previous installer and created the patch. The patch is 5 megs and does not actually update the original application, for reasons that I have not yet figured out.
However, my only reason for patching, especially if the patch is almost as big as the original installer, is to keep the users license file intact. Is there a way that I can uninstall the previous version and install the new version and leave the users license file untouched in the target directory? I am still somewhat new at using InstallAware and I depend on the visual side of things. If the answer lies in script, please be gentle and explain the process....Thanks a lot for the help...
Greyeye
To patch or not to patch, that is the question...
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
How about something a LOT simpler:
1. Start empty project
2. Read Registry to obtain your $TARGETNIR$ (and bail if not found)
3. Add your app as support file
4. Direct copy from $SUPPORTDIR$ to $TARGETDIR$ using kernel32.dll->CopyFileA thru Call DLL Function
Should be a lot smaller, too
1. Start empty project
2. Read Registry to obtain your $TARGETNIR$ (and bail if not found)
3. Add your app as support file
4. Direct copy from $SUPPORTDIR$ to $TARGETDIR$ using kernel32.dll->CopyFileA thru Call DLL Function
Should be a lot smaller, too

Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
Wow....That does sound like what I want to do....I could basically replace one dll and the exe files with new ones in the target directory by copying them over the old ones. However, a lot of what you just said is greek to me. I am going to start researching the key words that I am not familiar with, such as $TARGETNIR$ (maybe DIR?) and how to read the registry from InstallAware. If you have the time, a more in-depth step by step would really be appreciated....Thanks again.
Greyeye
Greyeye
Greyeye wrote:Wow....That does sound like what I want to do....I could basically replace one dll and the exe files with new ones in the target directory by copying them over the old ones. However, a lot of what you just said is greek to me. I am going to start researching the key words that I am not familiar with, such as $TARGETNIR$ (maybe DIR?) and how to read the registry from InstallAware. If you have the time, a more in-depth step by step would really be appreciated....Thanks again.
Greyeye
Hey, what's wrong with Greek?


Panagiotis Kefalidis
Software Design Team Lead
\"In order to succeed, your desire for success should be greater than your fear of failure\"
InstallAware Software Corporation
Software Design Team Lead
\"In order to succeed, your desire for success should be greater than your fear of failure\"
InstallAware Software Corporation
Michael,
I did not build any registry keys into my application in its 1.0 version. What would I be looking for as I read the registry in this case? I did some file association so there are registry entries for that...Can you give me some specific examples of reading the registry and how to do this as well as how to add your app as a support file and the direct copy method? I just need some examples of this in action. I have not had much luck searching the forum or the help files for examples. Thanks.
Greyeye
I did not build any registry keys into my application in its 1.0 version. What would I be looking for as I read the registry in this case? I did some file association so there are registry entries for that...Can you give me some specific examples of reading the registry and how to do this as well as how to add your app as a support file and the direct copy method? I just need some examples of this in action. I have not had much luck searching the forum or the help files for examples. Thanks.
Greyeye
-
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
Sorry, $INSTALLDIR$.
Use the Check Registry, Read Registry, Write Registry commands for registry operations.
Use Terminate Install to end setup.
And so on - check the commands palette on the left!
Use the Check Registry, Read Registry, Write Registry commands for registry operations.
Use Terminate Install to end setup.
And so on - check the commands palette on the left!
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
Who is online
Users browsing this forum: Bing [Bot] and 80 guests