mike@wdgcorp.com
Posts: 9
Joined: Mon Jan 22, 2007 9:39 pm

Backing up app folder before an upgrade

Before we upgrade we want to backup the app folder. So if the app rusn from c:\program files\MyCompany\MyApp, we would like to backup everything in MyApp to c:\program files\MyCompany\App.bak.

I stole from here to make this work: http://www.advancedinstaller.com/user-g ... le-ca.html.

We are seeing an error in Windows Server 2003 that loks like there is a problem with the vbs I used to do this.

So I am going to troubleshoot this tomorrow. Another developer in my shop can't believe that there isn't built in functionality to do this. Did I miss something? Could I be using AI functionality to do this, rather than VBS?
Thanks
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
Could I be using AI functionality to do this, rather than VBS?
No there is no built in functionality for this, you need to create a custom action for that:
http://www.advancedinstaller.com/user-g ... le-ca.html

What errors you get? Note that you need to customize the .vbs files from that tutorial to feet your needs.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
mike@wdgcorp.com
Posts: 9
Joined: Mon Jan 22, 2007 9:39 pm

Thanks Gigi,
There is no error. The custom action works fine. I just wanted to make sure that I hadn't missed something.
I used to work in a VB6 shop that wrote its own Replace function for strings. That was the sort of mistake I was trying to avoid.
Thanks,
Mike
mike@wdgcorp.com
Posts: 9
Joined: Mon Jan 22, 2007 9:39 pm

OK that last post is mis-leading. Testing was reporting an error in Windows Server 2003 but I am unable to replicate it. I think they were testing the backup on an old install, before I got it working.

Return to “Common Problems”