How can I Set a System Restore point...

Got a problem you cannot solve? Try here.
Post Reply
Steve
Posts: 117
Joined: Fri Jun 16, 2006 9:51 pm
Location: Canada eh

How can I Set a System Restore point...

Post by Steve »

Hello fellow IA'ers;
Best wishes to all for a happy and prosperous New Year.

I have noticed that many newer Microsoft applications inform the user that the installer is "setting a System Restore Point" at the very beginning of an installation. Undoubtedly this is probably are very good idea and good practice to perform a the start of any installation (especially in light of the fact that Microsoft themselves apparently do not have enough faith in their MSI technology to properly roll back/uninstall in order to reverse problems caused by an installation!).

I was wondering if anyone else out their is doing this and if so, how?

Thanks in advance for sharing your expertise!

Steve
Gizm0
Posts: 339
Joined: Wed Nov 09, 2005 8:47 pm

Post by Gizm0 »

Well actually is not because of lack of trust on the MSI engine, but in case a system file is getting updated, then they set a restore point, otherwise they never do it (i've only come across that behavior on WMPlayer and IE).

I've never done it, as i never "touch" system files in my installation.
Panagiotis Kefalidis
Software Design Team Lead
\"In order to succeed, your desire for success should be greater than your fear of failure\"
Install[b]Aware[/b] Software Corporation
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

There are also APIs you can use to create system restore points - see, for example, SRSetRestorePoint. You will be able to call these from a custom plug-in, or you can also try the Call DLL Function command.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
evoX
Posts: 20
Joined: Thu Jun 21, 2007 4:51 pm

Post by evoX »

It would be nice to have a Restore Point option in installaware instead of using a custom plug-in.
Tiago
Posts: 129
Joined: Thu Jun 18, 2009 9:08 am

Post by Tiago »

evoX wrote:It would be nice to have a Restore Point option in installaware instead of using a custom plug-in.
I will second this plea, but would also appreciate to know how to call the aforementioned API using Call DLL as well...

Has anybody done that before?
Thanks in advance.
[b]Tiago Rocha[/b]
[i]Product Technology[/i]
www.ppi-multitask.com.br
Tiago
Posts: 129
Joined: Thu Jun 18, 2009 9:08 am

Post by Tiago »

I'll take all this silence as a huge "no".
Thank you very much.
[b]Tiago Rocha[/b]
[i]Product Technology[/i]
www.ppi-multitask.com.br
alibaba
Posts: 314
Joined: Fri Jun 26, 2009 8:46 am
Location: Thuringia, Germany

Re: How can I Set a System Restore point...

Post by alibaba »

I remember that I read about an IA flag to disable system restore point creation.

But I cannot find it anywhere in manual/forum.

Can someone help me, please :)
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: How can I Set a System Restore point...

Post by giaviv »

What do you mean by disabling restore point creation?
During the setup or system-wide?
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
alibaba
Posts: 314
Joined: Fri Jun 26, 2009 8:46 am
Location: Thuringia, Germany

Re: How can I Set a System Restore point...

Post by alibaba »

I want to disable creating restore point only for the setup to save setup time.
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: How can I Set a System Restore point...

Post by giaviv »

Hi,

There is no built in way in IA to do this, however if you can write a dll that controls System Restore you could call it with Call DLL Function from MSIcode.
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply