Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

How can I create a Restore Point?


9 replies to this topic

Ian Frangs

Ian Frangs
  • Members
  • 2 posts

Posted 06 February 2004 - 16:26

I need to create a Restore Point, before installing our product, on Windows XP operating systems.
Unfortunately, I have been unable to find any clear answers to how one actually goes about doing this in the documentation supplied with InstallShield developer 7.
Is this possible via InstallScript and if so how does one do it.
If not then how else can this be achieved, if at all?

Any insight on this issue will be greatly appreciated!
Ian.

(I am using IS Developer 7.04 and have a Standard project.)


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 06 February 2004 - 22:06

I believe that all MSI based setups will automatically create a restore point unless you explicitly turn this off. Is this not the case for you?

igodunov

igodunov
  • Full Members
  • 61 posts

Posted 13 June 2007 - 07:41

QUOTE (Stefan Krueger @ 2004-02-06 22:06)
I believe that all MSI based setups will automatically create a restore point unless you explicitly turn this off. Is this not the case for you?

Is there any way to detect, that restore point has created or system changes has begun? The question is how to subscribe to such event (if it is ever possible) - and handle it ouside of installer process(es).

Glytzhkof

Glytzhkof
  • Moderators
  • 1,447 posts

Posted 13 June 2007 - 09:38

http://www.microsoft...t.mspx?mfr=true

http://support.micro...;295299&sd=tech

Regards
-Stein Åsmul

igodunov

igodunov
  • Full Members
  • 61 posts

Posted 13 June 2007 - 10:04

QUOTE (Glytzhkof @ 2007-06-13 09:38)
http://www.microsoft...t.mspx?mfr=true

http://support.micro...;295299&sd=tech

Thank you for advise, but may be I just confused You with my question. Second try smile.gif
I want to detect that system changes (that runs during execution of install script) has just been started (InstallInitialize action). If I written the bootstrapper app on my own the solution is to set external ui and handle INSTALLMESSAGE_ACTIONSTART events. The problem is that I have to detect this outside of installer process (each time it occures I want to register it in some log /and may be perform some other actions/ at the beginning of system modifications). I think of using some kind of hook, may be code injection - to handle MsiProcessMessage on msiexec service side - but this way extremely unsafe, I suppose.

igodunov

igodunov
  • Full Members
  • 61 posts

Posted 13 June 2007 - 12:01

QUOTE (Glytzhkof @ 2007-06-13 09:38)
http://www.microsoft...t.mspx?mfr=true

http://support.micro...;295299&sd=tech

Anywhere, I'll try to find an appropriate event that possibly exists in WMI subsystem. Thanks for advise again.

Glytzhkof

Glytzhkof
  • Moderators
  • 1,447 posts

Posted 14 June 2007 - 05:51

I am honestly not quite sure what you are trying to do here smile.gif - no offence. However it sounds like you are trying to detect the exact moment when the elevated install sequence is kicking off, is this correct? If it is correct, may I ask why you need to detect this? There may be a simpler and more reliable way to achieve what you want.

Edited by Glytzhkof, 14 June 2007 - 05:51.

Regards
-Stein Åsmul

igodunov

igodunov
  • Full Members
  • 61 posts

Posted 14 June 2007 - 07:46

QUOTE (Glytzhkof @ 2007-06-14 05:51)
I am honestly not quite sure what you are trying to do here smile.gif - no offence. However it sounds like you are trying to detect the exact moment when the elevated install sequence is kicking off, is this correct? If it is correct, may I ask why you need to detect this? There may be a simpler and more reliable way to achieve what you want.

I want to make a kind of snapshot (like System Restore does) before installer start to change the system.

Glytzhkof

Glytzhkof
  • Moderators
  • 1,447 posts

Posted 14 June 2007 - 09:43

Sorry if I am missing something, but as Stefan mentioned above this should happend automatically before any MSI isntallation? Do you perhaps want to save the image somewhere else? If so, go to %WINDIR%\System32\restore\ and look for the file called srdiag.exe. I believe it allows you to create a cab file version of the restore point. I have never used it though.
Regards
-Stein Åsmul

igodunov

igodunov
  • Full Members
  • 61 posts

Posted 14 June 2007 - 13:03

QUOTE (Glytzhkof @ 2007-06-14 09:43)
Sorry if I am missing something, but as Stefan mentioned above this should happend automatically before any MSI isntallation? Do you perhaps want to save the image somewhere else? If so, go to %WINDIR%\System32\restore\ and look for the file called srdiag.exe. I believe it allows you to create a cab file version of the restore point. I have never used it though.

I couldn't use SR. Bluntly speaking, I need to backup some locations that system restore doesn't backup.

Edited by igodunov, 14 June 2007 - 13:04.