Page 1 of 1

looking for taking backup of some Files and Folders,ODBC DSN

Posted: Wed Apr 14, 2010 4:32 am
by rahul gupta
Hi,
I am new to Installaware,but worked on Installshield. I am looking for taking backup of some Files and Folders and the ODBC DSN on the target machine before actual installation happens.

Can u please suggest some script to do the same.

Regards
Rahul :D

Re: looking for taking backup of some Files and Folders,ODBC

Posted: Wed Apr 14, 2010 6:16 am
by MichaelNesmith
Welcome, Rahul :D

You're going about it the wrong way. You need to test your setups on clean machines using VMware or Virtual PC.

Re: looking for taking backup of some Files and Folders,ODBC

Posted: Fri Apr 16, 2010 8:20 am
by rahul gupta
Hi Michael,
Thanks for the reply !!
I am trying it on the Clean Virtual PC.

Steps performed:
1) Installed my application setup created in other technology on Clean VPC.
This installation Created a Folder structure with subfolders containing files of different file types.
2) Get the installlocation from registry.
3) Wrote a Installaware script to move complete Folder structure using wildcard(*.*) to Temp folder.
4) Wrote a Installaware script Copy the folder to a BACKUP folder on the TARGET MACHINE.

Code Snipt:
Move Local Files $Installlocation$\*.* to $TEMPDIR$\*.*
Copy LOcal Files $TEMPDIR$\*.* to $PROGRAMFILES$\BACKUP\*.*

The above code snipt is not working ,i mean not giving any output as desired.
I tried some manipulations to above code snipt. I tried to copy content of one subfolder as well but the result was same.

Actually the my need is to backup all previous installation and then go for installation through Installaware so that client migrate to Installaware. Taking backup is a business requirement. I can't proceed if it is not done.
I hope you understand....

Waiting for a response!

Regards,
Rahul :)

Re: looking for taking backup of some Files and Folders,ODBC

Posted: Fri Apr 16, 2010 4:40 pm
by MichaelNesmith
Hi Rahul,

Are you testing for changes after an Apply Install is called? The commands will have no effect unless you do call Apply Install.

Re: looking for taking backup of some Files and Folders,ODBC

Posted: Sat Apr 17, 2010 10:20 pm
by rahul gupta
Hi Michael,

I am trying this before the "Apply Install" command. Apply Install is last statement in the code snipt. I just skipped in mentioning that.

Regards,
Rahul

Re: looking for taking backup of some Files and Folders,ODBC

Posted: Sun Apr 18, 2010 4:21 am
by MichaelNesmith
Then try:

Code: Select all

Copy Local Files $Installlocation$\*.* to $PROGRAMFILES$\BACKUP\*.*
Apply Install
Delete Files Recursive $Installlocation$\*.* 

Re: looking for taking backup of some Files and Folders,ODBC

Posted: Fri May 07, 2010 3:50 am
by rahul gupta
Hi Michael,
Thanks for the reply !!
I am trying it on the Clean Virtual PC.

Steps performed:
1) Installed my application setup created in other technology on Clean VPC.
This installation Created a Folder structure with subfolders containing files of different file types.
2) Get the installlocation from registry.
3) Wrote a Installaware script to move complete Folder structure using wildcard(*.*) to Temp folder.
4) Wrote a Installaware script Copy the folder to a BACKUP folder on the TARGET MACHINE.

Code Snipt:
Move Local Files $Installlocation$\*.* to $TEMPDIR$\*.*
Copy LOcal Files $TEMPDIR$\*.* to $PROGRAMFILES$\BACKUP\*.*

The above code snipt is not working ,i mean not giving any output as desired.
I tried some manipulations to above code snipt. I tried to copy content of one subfolder as wel but the result was same.

Actually the my need is to backup all previous installation and then go for installation through Installaware so that client migrate to Installaware. Taking backup is a business requirement. I can't proceed if it is not done.