Backup and restoring the files - Page 2 - 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

Re: Backup and restoring the files

Hi Cosmin,

I have set the "REMOVE = "ALL" condition for all the custom actions that are present under InstallFinalize. But still the folder is not getting restored... How can I restore the folder?

Regards
Sony
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Backup and restoring the files

Hi Sony,

Please note that the word REMOVE must not be set between quotes in your Advanced Installer project. This is public property which will contain the string "ALL"
if the package is completely uninstalled. If the property contains the string the custom actions should be executed.

If you put REMOVE between quotes then you will simply compare two strings that will never be equal.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

Re: Backup and restoring the files

Hi Bogdan,

By mistake, I have mentioned the quotes around Remove in my previous email. I apologize for that, but I have set the condition as REMOVE = "ALL" in my project but still the folder is not getting restored from temp

Regards
Sony
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Backup and restoring the files

Hi Sony,

Can you please send an uninstall log for the modified project? This time the custom actions should run, so most likely something is not set correctly.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

Re: Backup and restoring the files

HI Cosmin,

Please find the uninstall log in the following attachment.

Regards
Sony
Attachments
uninstalllog.log
(149.11 KiB) Downloaded 343 times
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Backup and restoring the files

Hi Sony,

It seems that the search which retrieves the "tfolder" property from the registry cannot be executed, so the custom action doesn't know from where to restore the files. Can you please send us the AIP (project) file you are using? For the sample project we provided the tfolder property is saved and retrieved correctly.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

Re: Backup and restoring the files

Hi Cosmin,

This sample project was given by one of your colleague. Please find the .aip file in the attachment.

Regards
Sony
Attachments
TestSample.aip
(28.85 KiB) Downloaded 355 times
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Backup and restoring the files

Hi Sony,

In the sample project I forgot to add "Software" to the registry search path. For the registry location of "TFOLDER_SEARCH" search please set the "Key" field to:

Code: Select all

Software\[Manufacturer]\[ProductName]
Also, please note that your other search is invalid. "EDIT_1_PROP" property will be resolved to a file path, not to a registry path.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

Re: Backup and restoring the files

Thanks alot Cosmin, my issue is resolved.... Thank you once again.

Regards
Sony

Return to “Common Problems”