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

Modifying a file after installation


3 replies to this topic

antyagi

antyagi
  • Full Members
  • 121 posts

Posted 20 December 2006 - 08:52

Hello everyone,

I have a setup that with CA, say CA1. CA1 tries to modify a text file but fails to even open the file. This text file is installed with the product and CA1 is called in ExecuteSequence after InstallFinalize.

Is there any workaround so that CA1 can modify text file???

NOTE: It happens only when installation is done in Program Files folder.
I guess that it is due to UAC.

thanks,
ankur tyagi
  ankur tyagi

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 21 December 2006 - 10:21

Change your custom action to "deferred in system context" and sequence it between InstallFiles and InstallFinalize.

antyagi

antyagi
  • Full Members
  • 121 posts

Posted 21 December 2006 - 13:03

Right, this is what I understand.

A fellow suggested to modify the launcher, setup.exe, manifest and give it requestedExecutionLevel as Highest. I tried and this also worked but I am not sure if it is a good and clean way to solve this problem?
  ankur tyagi

Glytzhkof

Glytzhkof
  • Moderators
  • 1,447 posts

Posted 22 December 2006 - 05:02

I would definitely use Stefan's approach for this!
Regards
-Stein Åsmul