Questions - 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!

sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

Questions

Hello,

I am new to advanced installer.I would like to achieve the following requirement through advance installer.
1) Copying a file without installing the file?
2) Extracting the zip file?

Please help me...... :(

Thanks,
Soni
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Questions

Hello,

I am not sure I understand.
Could you explain in more detail what you are trying to do and why?

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

Re: Questions

Hi Gabriel,

Thank you for your response..

I have three binary zip files which are needed to be extracted in a custom location and I also need copy the another binary files in separate folder without installing it.

I hope this information helps you.

Thanks
Soni
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Questions

Hello,

Extract the zip files to a folder on your machine and add the contents to Advanced Installer's Files and Folders page.
I also need copy the another binary files in separate folder without installing it.
I'm not sure I understand this.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

Re: Questions

Hello Gabriel,

I want to add the zip file in the advance installer package and extract it at run time. Regarding the second question, I just want to copy a file by adding it in the Files and Folder location in AI and copy it to different location during installation.

I hope atleast now you understand my issue :(

Regards
Sony
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Questions

Hello,

You can add the zip file to the files and folders page. You can then use a Launch File or Open URL custom action to unzip it. You will need a utility for unzippig it and set that utility as an installed custom action.
I just want to copy a file by adding it in the Files and Folder location in AI and copy it to different location during installation.
You can use a file copy operation for that, or you can create a bat that will copy the file for you.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

Re: Questions

Hello Gabriel,

Thank you for the suggestions... :)

Now I am able to copy the file successfully using File Copy Operation.

But Iam uanble to use a Launch File or Open URL custom action to unzip the zip folder...

Could you please explain the second issue( unzipping the folder) in a detailed manner since I am new to AI.... My zip folder consists of .txt and .exe files. I need to extract all the files in to a folder in a particular location.


Regards
Soni
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Questions

Hi,

What I meant was you will need a command line utility that does unzipping. Installers do not do this natively.
A quick google search yields these results.

Choose a utility that does unzipping through the command line, add the utility to your package as a temporary file, make a custom action that will launch this utility with the appropriate parameters to unzip your archive.

Should you be unfamiliar with some terms used in my explanation, our User Guide covers a broad variety of topics, using the search feature should provide you with the documentation necessary to understand my explanation.

Nonetheless, do let me know if there are things that need further explaining, and I will be happy to assist.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

Re: Questions

Gabriel,

Thank you for the explaination..

I have added the unzip.exe as a temporary file.. and then added the newfolder.zip file in the application folder. Later in the custom action, I have added Launch File or open URL custom action and in the command line option, I have set the [&unzip.exe][#New_Folder.zip] parameter. During the run time, zip file is getting installed as it is... I mean as a zip file but not as a extracted folder.

Please let me know, if I am doing anything wrong...

Regards
Sony
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Questions

Hi Sony,

I forgot to mention the zip should be also added as a temporary file if you do not want to install the zip. Also, it appears you did not leave a space between [&unzip.exe] and [#New_Folder.zip], which means your command line would evaluate to something like:

Code: Select all

C:\temp\unzip.exeC:\New_folder.zip
or something else depending on where the temporary files extract themselves.

Also, make sure the command line arguments are correct. Try using that utility from the command line yourself to get a feel how it works, if you are not already familiar with it's usage through the command line.

Let me know if it worked. If not, please send your .aip project file to support at advancedinstaller dot com so we can further investigate the issue.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”