Duplicate a folder and more - 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!

mknippenberg
Posts: 5
Joined: Wed Oct 12, 2011 2:39 pm

Duplicate a folder and more

A couple of questions but most important:

1)
I need to have a copy of a folder with alot of subfolders and media in it. What is the best way to achieve this without adding everything to the installer itsself so it doesnt increase to much in size. Also because these folders change regularly (every month or so) im using the synchronize option to keep my source folder up to date. This copies folder also needs to be "permanent" and "never overwrite".

Is there some hidden button to add a folder operation like there are file operations (duplicate / copy etc). :D

2)
Why do i get alot of register errors when i do a check with ccleaner after i uninstalled the software, they are all linked to the folders i add. Any idea what im doing wrong or not doing perhaps?

3)
Is it possible to make whole folders including their files permanent and never overwrite instead of doing it file by file? And how does this affect performance, since uninstalling seems to go extremely slow if i dont do this.

4)
What does Do not register with Windows Installer do, since uninstalling seems to really benefit because of this. If i do not check all my media and files, it takes reallyyyy long.
mknippenberg
Posts: 5
Joined: Wed Oct 12, 2011 2:39 pm

Re: Duplicate a folder and more

It seems the option to "Do not register with Windows Installer" is the cause for the registry errors (Install error) on all my folders i have check the option for.

A shame it causes this issue since it somehow really speeds up the uninstallation process.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Duplicate a folder and more

Hello,
1) If you have a lot of resources you will have a large installer. You can play around with the archiving options from the Media page, but the whole result( with dependencies e.g. CAB files ) will still be large. If you want to deliver a small installer, you can also consider having a web-based installation:
http://www.advancedinstaller.com/user-g ... ation.html
Is there some hidden button to add a folder operation like there are file operations (duplicate / copy etc)
Unfortunately no, but you can implement this behavior from within your own custom action.

2) This may happen if the registry entries your installer added are not deleted upon uninstall. During an uninstall, Windows Installer removes only the data registered into the MSI file. All other data created by custom actions, by the installed application or by the user is not registered in the MSI, therefore it will not be removed. If you want to also delete this data, you need to use the "Uninstall Cleanup" wizard available from the context menu when a folder is selected in the Files and Folders Page.

3) If you want to preserve resources please read this user guide article.

4) Here's the option's user guide reference. If an option is not self-explanatory from the GUI, you can always press F1 inside Advanced Installer and the corresponding help article will show.

Here's another post that might help.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mknippenberg
Posts: 5
Joined: Wed Oct 12, 2011 2:39 pm

Re: Duplicate a folder and more

Thanks for your replies,

For now it seems ive managed to solve the registry errors by making file components set to "Permanent" + "Do not register with windows installer". Then at uninstall i remove the top level folders even if there are files left this solves the issue mostly. And speeds up uninstallation from 20 sec to 5.

The uninstall cleanup doesn't fix these errors by the way. I only have 1 left one now i just cant seem to get rid of, as soon as i check "Create Folder on target machine" my folder component is removed once i build my project.

By the way if anyone else is struggling with a lot of folders and files i recommend to make a few features for all the files you want to set the same properties for. Then just select a feature and press shift + f4 and in the search result window select all the components and right click to change the properties simultaneously. Or move them to a different feature if you want.

It would really help if there were some better options to manage a lot folder with a lot of files like i mentioned, it would make setting up installers with a lot of files and folders so much easier to manage.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Duplicate a folder and more

Hello,
I only have 1 left one now i just cant seem to get rid of, as soon as i check "Create Folder on target machine" my folder component is removed once i build my project.
Can you please specify what is the error you are getting? If the installation resources( registry entries or files ) are removed correctly, then this cannot be caused by Advanced Installer.
It would really help if there were some better options to manage a lot folder with a lot of files like i mentioned, it would make setting up installers with a lot of files and folders so much easier to manage.
Thank you for your suggestion, I have forwarded it to our development team to be considered for a future version.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”