Problem under Vista with ExecCommand

2 messages Options
Embed this post
Permalink
mailinglisten.wix-users

Problem under Vista with ExecCommand

Reply Threaded More More options
Print post
Permalink
Hello,

i made an simple installer for distributed installation of our
software. It's necessary to write die IP of our application server in
an txt-file, where the application reads it on first start. The
"SERVERIP" ist passed to msiexec as an commandline-argument.

The following CustomAction does an great job on Windows-XP, but on
Vista the File "adr.txt" is not generated:

       
<CustomAction Id="RunCmd" Directory="SystemFolder" Return="ignore"
      ExeCommand="cmd.exe /c echo.|set /p "=IP:[SERVERIP]"
      > " [MyFolderApplication]adr.txt""/>
<InstallExecuteSequence>
   <Custom Action="RunCmd" After="InstallFiles">REMOVE~=ALL</Custom>
</InstallExecuteSequence>


The linebreaks in CustomAction are only in this mail, in the xml-file
where is no linebreak.


In the verbose-log i see that "RunCmd" is executed - on XP and Vista
with RC 1 - and no error message. On XP we have the "adr.txt" after
that, on vista we don't have.


Does someone have an idea why that happens?


regards,
Albert Scholl


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Blair-2

Re: Problem under Vista with ExecCommand

Reply Threaded More More options
Print post
Permalink
Would it make any difference if you added Execute="deferred"
Impersonate="no" to your CustomAction element?

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]]
Sent: Thursday, October 22, 2009 10:19 AM
To: [hidden email]
Subject: [WiX-users] Problem under Vista with ExecCommand

Hello,

i made an simple installer for distributed installation of our
software. It's necessary to write die IP of our application server in
an txt-file, where the application reads it on first start. The
"SERVERIP" ist passed to msiexec as an commandline-argument.

The following CustomAction does an great job on Windows-XP, but on
Vista the File "adr.txt" is not generated:

       
<CustomAction Id="RunCmd" Directory="SystemFolder" Return="ignore"
      ExeCommand="cmd.exe /c echo.|set /p "=IP:[SERVERIP]"
      > " [MyFolderApplication]adr.txt""/>
<InstallExecuteSequence>
   <Custom Action="RunCmd" After="InstallFiles">REMOVE~=ALL</Custom>
</InstallExecuteSequence>


The linebreaks in CustomAction are only in this mail, in the xml-file
where is no linebreak.


In the verbose-log i see that "RunCmd" is executed - on XP and Vista
with RC 1 - and no error message. On XP we have the "adr.txt" after
that, on vista we don't have.


Does someone have an idea why that happens?


regards,
Albert Scholl


----------------------------------------------------------------------------
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users