Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

custom action on windows 7 64 bit

28 views
Skip to first unread message

pulu

unread,
Apr 8, 2010, 6:48:08 AM4/8/10
to udi.ben...@intel.com, roy....@intel.com, tal.p...@gmail.com
Hi,

i'm using msi in visual studio 2005.

i added a custom action that runs a c# console application that moves
files from %programfiles% to %programdata%.

when running this msi on windows 7 64 bit i get a pop - up message of
error code 2689.

AFIK msi is run with administrator privileges, does it include also
the custom actions?

Thanks,

pulu

jacky kwok

unread,
Apr 8, 2010, 10:38:06 PM4/8/10
to


Are you sure your "c# console application" work when running in
normal(i.e. not in installer custom actions).

A point you need to note is that there are 2 "Program Files" folder in
64bit OS.
One is for 64bit apps "Program Files", one is for 32 bit apps "Program
Files (x86)".
By default, VS2005 installer project creates a 32bit target installer,
the default app installer path is in "Program Files (x86)" in 64 bit OS
except you change it manually.

While, if your "c# console application" is a pure dotnet2 executable
app, it will run as a 64bit app in 64bit windowOS. Then, in its 64bit
app viewpoint , %programfiles% == "Program Files".

Hence, if your apps is installed in "Program Files (x86)",
your "c# console application" will use a non-exist path.

pulu

unread,
Apr 11, 2010, 4:28:21 AM4/11/10
to

Hi,

Thanks for answering.

the msi copies the executable to the target location under normal
%program files% (not x86),

and when double clicking it runs successfully while the msi didn't ran
it at all.

when i add a condition 1=1 in the custom action i get the error code
and the installation rolls back.

i would appreciate any help.

Jacky Kwok

unread,
Apr 11, 2010, 9:14:16 AM4/11/10
to


Then, the last thing, I can think about is
did you set your CustomAction is NOT an "Installer Class".
For an executable file CustomAction, "Installer Class" should be set
"Installer Class" to FALSE (default is TRUE).


pulu

unread,
Apr 12, 2010, 3:53:24 AM4/12/10
to

Hi,

Thanks again for the help.

it actually did the trick.

can you please maybe explain what exactly is the installer class
property?

jacky kwok

unread,
Apr 12, 2010, 9:50:17 PM4/12/10
to
0 new messages