Phil Wilson
7/21/2006 1:13:00 AM
The property ALLUSERS has a value of 1 when installing per-machine, so the
condition on your custom action that you want to run for a per-machine
install is ALLUSERS=1. Use ALLUSERS<>1 for the opposite condition.
--
Phil Wilson [MVP Windows Installer]
----
"Lonifasiko" <mloichate@gmail.com> wrote in message
news:1153394443.144878.176980@s13g2000cwa.googlegroups.com...
> Hi, after my setup project copies all necessary files to the target
> directory selected by the user, I'm launching a little Console
> application that moves some files to %USERPROFILE% directory. Besides,
> I write application's configuration file (application.exe.config) with
> the new path of these moved files.
>
> I think this is the only way I can move these files to %USERPROFILE%
> directory. But this should depend on what radiobutton user selects
> during installation (install "Just for me" or "For all users").
> That is, sometimes I should copy these files to %USERPROFILE% whereas
> sometimes I should copy them to %aALLUSERSPROFILE%. How can I do this?
> Can I use any environment variable in a Custom Folder that lets me do
> this? What properties should I change then?
>
> Well, back to my current situation, where I launch a .exe as a custom
> action. The executable I'm launching during installation, is copied to
> the target directory of the application, that is, I can see the .exe.
> This way installation works fine. I've tried with "Exclude=true" in
> order to launch my cutom action but do not copy the console
> application, but this way installation crashes.
>
> Besides, when launching the console application, I can see the console
> window for some seconds. Is there a way to avoid this during
> installation process?
>
> I would really appreciate any light on this. Thanks very much in
> advance.
>