Backing up app folder before an upgrade - 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!

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”