Assistance Needed - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Kyle
Posts: 4
Joined: Thu Jul 29, 2010 3:46 pm

Assistance Needed

Hi,

We created software than manages hotels, guest houses, etc. We have a lot of users that use the software who need their versions of our software updated. The problem is that there is a database file within the applications folder which cannot be deleted or overwritten. The previous version was created with another installer application.

This is where I need assistance. I need to create an installation that will:

1 - Search for the existing installation of our software.
2 - Find the database file and back it up somewhere.
3 - Remove the previous version of our software and replace it with the new one.
4 - Hopefully bring the database back the the applications folder.

I purchased Advanced Installer yesterday - I am hoping this can be done. If somebody could explain how to do this, I would be extremely grateful.

Regards,

Kyle Frandsen
kyle[at]mammothsolutions[dot]co[dot]za
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Assistance Needed

Hi Kyle,

Thank you for registering Advanced Installer.
1 - Search for the existing installation of our software.
2 - Find the database file and back it up somewhere. Remove the previous version of our software and replace it with the new one.
This can be easily done if the previous version of your package was MSI based too. The automatic upgrade of the previous version can be done from the Upgrades page.
Hopefully bring the database back the the applications folder.
To restore the database you can try the following article, please read it carefully.

Let us know if you have other questions.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Kyle
Posts: 4
Joined: Thu Jul 29, 2010 3:46 pm

Re: URGENT Assistance Needed

Hi Bogdan,

I tried the methods as described in the user guide that you sent but have had no luck. The file completely disappeared.

I have basically created two batch files which do exactly what I need - but do not seem able to get the batch files to run with the installer. The first batch file (backup.bat) needs to run before the old version gets uninstalled and the second batch file (restore.bat) needs to run after the installation is finished.

This is what the batch files contain:

Backup.bat:
@echo off
md c:\staysysbackup
cd/
cd "c:\program files\staysys"
copy staysys.fdb c:\staysysbackup

Restore.bat:
@echo off
cd/
cd staysysbackup
copy "c:\staysysbackup\staysys.fdb" "c:\program files\staysys\staysys.fdb"
cd\
del c:\staysysbackup\staysys.fdb
rd c:\staysysbackup

Now the trick comes into getting the batch files to run at the right times. I tried to set it up but saw somewhere along the line that a Windows Installer cannot execute batch files.

Am I missing something here?

The process needs to be as follows:

Detect previous version. (Working Perfect)
Run Batch File (Backup.bat)
Remove Previous Version (Working Perfect)
Install (Working Perfect)
Run Batch File (Restore.bat)
Finish (Working Perfect)
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Assistance Needed

Hi Kyle,

In the article there is described the order in which the custom actions should be executed, and also the standard actions under which they should be placed.

If that is not enough you can also try to have a look at our samples attached to that article.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Kyle
Posts: 4
Joined: Thu Jul 29, 2010 3:46 pm

Re: Assistance Needed

Hi,

Thank you for trying to help me but it is just not working, no matter what I try.

I followed all of the steps in the link that you sent me. I took screenshots so that I could show you what I have entered.

The application is installed into C:\Program Files\StaySYS. The file I need to be backed up and restore is in that folder called staysys.fdb. It doesn’t matter where it gets backed up to, as long as it comes back.

As mentioned before, it must backup that file, uninstall, reinstall and then restore that file.

Here are the screenshots, have I done something wrong:

1
Image

2
Image

3
Image

4
Image

I need to have this update ready soon, and I am really struggling, I hope you can help.

Regards,

Kyle Frandsen
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Assistance Needed

Hi Kyle,

The aip seems to have the custom actions configured correctly. Can you please go to Upgrades page and make sure the radio button "Uninstall old version first and then install new version"
is selected?

Also, you can try to use our Message Box predefined custom action to pause the installation process and see if the files are copied after the custom action "Backup".

If the problem persists please send me a verbose log of the installation and the aip file to support at advancedinstaller dot com.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Kyle
Posts: 4
Joined: Thu Jul 29, 2010 3:46 pm

Re: Assistance Needed

Hi Bogdan,

Im sure you are becoming slightly annoyed by my constant emails and forum postings. Please understand that I am becoming annoyed after spending $299 on a license for Advanced Installer and it does not seem able to create what I need it to despite following the user guide steps to a tee. I downloaded SDK Components - a staggering 583 megabytes which crashed halfway through the first time. Now after downloading it again and having it installed and creating a patch, I am told that I now need an 'Enterprise License'.

I do not think that what I am asking to do is that difficult. I’ll put it all in a nutshell and you let me know if I have wasted my money or Advanced Installer can make it work:

I have created setup.msi which contains the following files:

Image

This all works perfect, it installs, clients can use it 100%.

What I want to do is create some kind of Installer/Update/Patch that I can keep updating onto my server. The only file that needs to be updated is Staysys.exe. I want the clients computer to check for new updates on the server and if it finds it, to download it and install it. I don’t want any of the other files to be touched. Just Staysys.exe. At the moment we are on version 12.6. When a bug is pointed out, we fix the Staysys.exe file and bump the version up to 12.7.

Instead of pointing me in the direction of the tutorial, can you please tell me how to do this (if it is possible) and what I need to do.


Regards,

Kyle Frandsen
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Assistance Needed

Hi Kyle,

As you can see on our website the features list states clearly that you can create a patch only if you have an Enterprise version.

With smaller version types you can only create a a complete new setup package as an update, not a patch.

Since you want to deploy only the changed file and not the entire package, I recommended you to use a patch.

If you don't wish to upgrade to Enterprise version, so you can create the patch, then the only solution you have, using the Professional version, is to deploy a completely new setup package that contains all the files of your application.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”