Discussion:
[WiX-users] Running Custom Action Before InstallFiles
BOB1981
2008-09-16 20:57:56 UTC
Permalink
Hi All,

Everyone has been really helpfull here with me, first thankyou soo much for
this help.

Okey now my Question, I am trying to run a Custom action before Install
Files , this action is to just xcopy existing folder from h:\Sites to
h:\BackupSites , i added the custome action and InstallExecute Sequence as
below:-

<CustomAction Id='BackupFiles' Value ='c:\xcopy /e /c /y h:\Sites
h:\BackupSites' Property='BackupFiles'></CustomAction>

<InstallExecuteSequence>
<Custom Action='BackupFiles' Before='InstallFiles'></Custom>
</InstallExecuteSequence>

My Product.wxs file complie and generates an MSI with no errors.
But when i install the MSI this action is running but with exit code 1 as
below, part of Log file is below:

Action 16:28:27: BackupFiles.
Action start 16:28:27: BackupFiles.
Action ended 16:28:27: BackupFiles. Return value 1.

it seems the action is running but some error while executing. How can i Use
Xcopy in this scenario to use as custom action to run before InstallFiles
Action.

Waiting.
Thanks
--
View this message in context: http://n2.nabble.com/Running-Custom-Action-Before-InstallFiles-tp1093699p1093699.html
Sent from the wix-users mailing list archive at Nabble.com.
Neil Sleightholm
2008-09-17 00:43:29 UTC
Permalink
I think the problem is that xcopy isn't in c:\ it is in system32 so you would need a fully qualified path to it.

Neil

Neil Sleightholm
X2 Systems Limited
***@x2systems.com <mailto:***@x2systems.com>


________________________________

From: wix-users-***@lists.sourceforge.net on behalf of BOB1981
Sent: Tue 16/09/2008 13:57
To: wix-***@lists.sourceforge.net
Subject: [WiX-users] Running Custom Action Before InstallFiles




Hi All,

Everyone has been really helpfull here with me, first thankyou soo much for
this help.

Okey now my Question, I am trying to run a Custom action before Install
Files , this action is to just xcopy existing folder from h:\Sites to
h:\BackupSites , i added the custome action and InstallExecute Sequence as
below:-

<CustomAction Id='BackupFiles' Value ='c:\xcopy /e /c /y h:\Sites
h:\BackupSites' Property='BackupFiles'></CustomAction>

<InstallExecuteSequence>
<Custom Action='BackupFiles' Before='InstallFiles'></Custom>
</InstallExecuteSequence>

My Product.wxs file complie and generates an MSI with no errors.
But when i install the MSI this action is running but with exit code 1 as
below, part of Log file is below:

Action 16:28:27: BackupFiles.
Action start 16:28:27: BackupFiles.
Action ended 16:28:27: BackupFiles. Return value 1.

it seems the action is running but some error while executing. How can i Use
Xcopy in this scenario to use as custom action to run before InstallFiles
Action.

Waiting.
Thanks

--
View this message in context: http://n2.nabble.com/Running-Custom-Action-Before-InstallFiles-tp1093699p1093699.html
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Denis Zavorotnyuk
2008-09-17 07:35:23 UTC
Permalink
Bob, as far as I understood your CustomAction simply set the Property='BackupFiles' with the value specified. Try create another custom action of the type 50 (http://msdn.microsoft.com/en-us/library/aa372048(VS.85).aspx), probably like this:
<CustomAction Id="DoBackupFiles" Property='BackupFiles' ExeCommand='/e /c /y h:\Sites h:\BackupSites ' Execute='immediate' Return='ignore' Impersonate='no' />
but in this case, most likely your CustomAction should be like this:
<CustomAction Id='BackupFiles' Value ='c:\xcopy' Property='BackupFiles'></CustomAction>
and include both CustomActions into the InstallExecuteSequence.

С уважением,
Заворотнюк Денис.
-----Исходное сообщение-----
Отправлено: 17 сентября 2008 г. 0:58
Тема: [WiX-users] Running Custom Action Before InstallFiles
Hi All,
Everyone has been really helpfull here with me, first thankyou soo much for
this help.
Okey now my Question, I am trying to run a Custom action before Install
Files , this action is to just xcopy existing folder from h:\Sites to
h:\BackupSites , i added the custome action and InstallExecute Sequence as
below:-
<CustomAction Id='BackupFiles' Value ='c:\xcopy /e /c /y h:\Sites
h:\BackupSites' Property='BackupFiles'></CustomAction>
<InstallExecuteSequence>
<Custom Action='BackupFiles' Before='InstallFiles'></Custom>
</InstallExecuteSequence>
My Product.wxs file complie and generates an MSI with no errors.
But when i install the MSI this action is running but with exit code 1 as
Action 16:28:27: BackupFiles.
Action start 16:28:27: BackupFiles.
Action ended 16:28:27: BackupFiles. Return value 1.
it seems the action is running but some error while executing. How can i Use
Xcopy in this scenario to use as custom action to run before InstallFiles
Action.
Waiting.
Thanks
--
View this message in context: http://n2.nabble.com/Running-Custom-Action-Before-
InstallFiles-tp1093699p1093699.html
Sent from the wix-users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
BOB1981
2008-09-17 13:22:07 UTC
Permalink
Hi Denis,

Thank soo much , you nailed it right. I just made the changes you suggested
and its working , but it seems to run everytime i install the MSI or
Uninstall or Repair..
So i added
<Custom Action='BackupFiles'
Before='InstallFiles'><![CDATA[&F_Online=3]]></Custom>
<Custom Action='DoBackupFiles'
Before='InstallFiles'><![CDATA[&F_Online=3]]></Custom>

So i guess it will run only if F_Online Feature is getting installed.
Hey there only one this left i need to acomplist in this....any idea ?

This Msi Package which i am creating needs to be created in such way that ,
on our production server it is always going to be Install (Never Uninstall).
this is why i wanted to all this backup Action before install.

So wht can i change that it will allow over an existing Msi Product. Unlike
right now it gives me an error "Another Version of this Product is already
installed".
Because i want all of my Components to be Unmanaged , I guess i am going to
leave Guid attribute as an empty string. Do u think its okey.. I just dont
know the concequesces of this.

All actually i want is no updation in registry at all and just an installer
(no removal).
Let me know
and thanks for you suggestion. again
Bob
Post by Denis Zavorotnyuk
Bob, as far as I understood your CustomAction simply set the
Property='BackupFiles' with the value specified. Try create another custom
action of the type 50
(http://msdn.microsoft.com/en-us/library/aa372048(VS.85).aspx), probably
<CustomAction Id="DoBackupFiles" Property='BackupFiles' ExeCommand='/e /c
/y h:\Sites h:\BackupSites ' Execute='immediate' Return='ignore'
Impersonate='no' />
<CustomAction Id='BackupFiles' Value ='c:\xcopy'
Property='BackupFiles'></CustomAction>
and include both CustomActions into the InstallExecuteSequence.
С уважением,
Заворотнюк Денис.
--
View this message in context: http://n2.nabble.com/Running-Custom-Action-Before-InstallFiles-tp1093699p1095230.html
Sent from the wix-users mailing list archive at Nabble.com.
Denis Zavorotnyuk
2008-09-17 14:27:30 UTC
Permalink
Hi, Bob.
Custom action <Custom Action='BackupFiles' Before='InstallFiles'><![CDATA[&F_Online=3]]></Custom> will perform whenever the feature "F_Online " is selected to install. Try include in your condition this: (Not Installed). It should look like this:
<Custom Action='BackupFiles' Before='InstallFiles'><![CDATA[Not Installed AND &F_Online=3]]></Custom>

P.S. Bob, tell me please, how do you know about the feature can be referenced in a condition as "&feature_name"?

Regards,
Denis Zavorotnyuk
-----Исходное сообщение-----
Отправлено: 17 сентября 2008 г. 17:22
Тема: Re: [WiX-users] HA: Running Custom Action Before InstallFiles
Hi Denis,
Thank soo much , you nailed it right. I just made the changes you suggested
and its working , but it seems to run everytime i install the MSI or
Uninstall or Repair..
So i added
<Custom Action='BackupFiles'
Before='InstallFiles'><![CDATA[&F_Online=3]]></Custom>
<Custom Action='DoBackupFiles'
Before='InstallFiles'><![CDATA[&F_Online=3]]></Custom>
So i guess it will run only if F_Online Feature is getting installed.
Hey there only one this left i need to acomplist in this....any idea ?
This Msi Package which i am creating needs to be created in such way that ,
on our production server it is always going to be Install (Never Uninstall).
this is why i wanted to all this backup Action before install.
So wht can i change that it will allow over an existing Msi Product. Unlike
right now it gives me an error "Another Version of this Product is already
installed".
Because i want all of my Components to be Unmanaged , I guess i am going to
leave Guid attribute as an empty string. Do u think its okey.. I just dont
know the concequesces of this.
All actually i want is no updation in registry at all and just an installer
(no removal).
Let me know
and thanks for you suggestion. again
Bob
Post by Denis Zavorotnyuk
Bob, as far as I understood your CustomAction simply set the
Property='BackupFiles' with the value specified. Try create another custom
action of the type 50
(http://msdn.microsoft.com/en-us/library/aa372048(VS.85).aspx), probably
<CustomAction Id="DoBackupFiles" Property='BackupFiles' ExeCommand='/e /c
/y h:\Sites h:\BackupSites ' Execute='immediate' Return='ignore'
Impersonate='no' />
<CustomAction Id='BackupFiles' Value ='c:\xcopy'
Property='BackupFiles'></CustomAction>
and include both CustomActions into the InstallExecuteSequence.
С уважением,
Заворотнюк Денис.
--
View this message in context: http://n2.nabble.com/Running-Custom-Action-Before-
InstallFiles-tp1093699p1095230.html
Sent from the wix-users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.ne
BOB1981
2008-09-17 14:51:39 UTC
Permalink
Hi Denis,
I got this from these two links. If you read the rist link its someone
having this issue and second link explains how can we use Feature as a
refrence in condition.

http://osdir.com/ml/windows.devel.wix.user/2005-01/msg00047.html
http://www.mail-archive.com/wix-***@lists.sourceforge.net/msg13712.htmlas
far you seggestion, right now it only triggers if that feature is getting
installed, i dont understand adding "Not Installed AND" in front of it would
make what diffrence. i dont understand this concept , can u explain a bit.

Right now my package is working fine...
wht do u think abt this.

This Msi Package which i am creating needs to be created in such way that ,
Post by BOB1981
on our production server it is always going to be Install (Never Uninstall).
this is why i wanted to all this backup Action before install.
So wht can i change that it will allow over an existing Msi Product. Unlike
right now it gives me an error "Another Version of this Product is already
installed".
Because i want all of my Components to be Unmanaged , I guess i am going to
leave Guid attribute as an empty string. Do u think its okey.. I just dont
know the concequesces of this.
All actually i want is no updation in registry at all and just an installer
(no removal).
Let me know
Thanks
Post by BOB1981
Hi, Bob.
Custom action <Custom Action='BackupFiles'
Before='InstallFiles'><![CDATA[&F_Online=3]]></Custom> will perform
whenever the feature "F_Online " is selected to install. Try include in
<Custom Action='BackupFiles' Before='InstallFiles'><![CDATA[Not
Installed AND &F_Online=3]]></Custom>
P.S. Bob, tell me please, how do you know about the feature can be
referenced in a condition as "&feature_name"?
Regards,
Denis Zavorotnyuk
--
View this message in context: http://n2.nabble.com/Running-Custom-Action-Before-InstallFiles-tp1093699p1095466.html
Sent from the wix-users mailing list archive at Nabble.com.
Denis Zavorotnyuk
2008-09-18 09:50:23 UTC
Permalink
Hi, Bob.
Adding "Not Installed" in the condition would make the difference, because "Installed" is the Installation Status Property, take a look at http://msdn.microsoft.com/en-us/library/aa369297(VS.85).aspx.

Regards,
Denis Zavorotnyuk.
-----Исходное сообщение-----
Отправлено: 17 сентября 2008 г. 18:52
Тема: Re: [WiX-users] HA: HA: Running Custom Action Before InstallFiles
Hi Denis,
I got this from these two links. If you read the rist link its someone
having this issue and second link explains how can we use Feature as a
refrence in condition.
http://osdir.com/ml/windows.devel.wix.user/2005-01/msg00047.html
far you seggestion, right now it only triggers if that feature is getting
installed, i dont understand adding "Not Installed AND" in front of it would
make what diffrence. i dont understand this concept , can u explain a bit.
Right now my package is working fine...
wht do u think abt this.
This Msi Package which i am creating needs to be created in such way that ,
Post by BOB1981
on our production server it is always going to be Install (Never Uninstall).
this is why i wanted to all this backup Action before install.
So wht can i change that it will allow over an existing Msi Product. Unlike
right now it gives me an error "Another Version of this Product is already
installed".
Because i want all of my Components to be Unmanaged , I guess i am going to
leave Guid attribute as an empty string. Do u think its okey.. I just dont
know the concequesces of this.
All actually i want is no updation in registry at all and just an installer
(no removal).
Let me know
Thanks
Post by BOB1981
Hi, Bob.
Custom action <Custom Action='BackupFiles'
Before='InstallFiles'><![CDATA[&F_Online=3]]></Custom> will perform
whenever the feature "F_Online " is selected to install. Try include in
<Custom Action='BackupFiles' Before='InstallFiles'><![CDATA[Not
Installed AND &F_Online=3]]></Custom>
P.S. Bob, tell me please, how do you know about the feature can be
referenced in a condition as "&feature_name"?
Regards,
Denis Zavorotnyuk
--
View this message in context: http://n2.nabble.com/Running-Custom-Action-Before-
InstallFiles-tp1093699p1095466.html
Sent from the wix-users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
Bhavdeep Singh
2008-09-18 12:49:34 UTC
Permalink
Hi Denis,

thanks now i got , so adding Not Installed will make this action to trigger only If this feature i not installed, if this feature is already installed then it will not trigger. It makes sense now . thanks again
Thanks and RegardsBOB
_________________________________________________________________
Get more out of the Web. Learn 10 hidden secrets of Windows Live.
http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008
Vivek
2008-09-17 15:10:59 UTC
Permalink
Hi All,

I am trying some thing similar. What i am trying to do is I have one file
which i have included in my msi and i am copying it in "Temp Folder" using a
component which is getting called in my main feature element


<Directory Id="TempFolder" SourceName="Temp">
<Component Id="TempComp"
Guid="FD8C351E-7DE5-462B-957D-CA3BFF7BA17F">
<File Id="CLEANUP" Name="cleanup.cmd" LongName="cleanup.cmd"
Source="dependencies/batch/cleanup.cmd" DiskId="1"/>
</Component>
</Directory>

i am calling this component in my main feature like this:

<Feature Id="ProductFeature" Title="Standalone Product" Level="1"
Description="Installs all Product components">
<ComponentRef Id="TempComp"/>
<ComponentRef Id="RegistryComp1" />
<ComponentRef Id="ProductComponent" />
<ComponentRef Id="OUTPUTFLDR" />
<ComponentRef Id="DLLS" />
<ComponentRef Id="MyService"/>
</Feature>

Now my problem is i have a custom action (which calls the file i placed in
Temp folder) which i wish to execute to do some cleanup before installing my
new files.
Is it possible i can just copy this file and execute my custom action before
installing any of my files?

Thanks in Advance.

Vivek
Post by BOB1981
Hi All,
Everyone has been really helpfull here with me, first thankyou soo much
for this help.
Okey now my Question, I am trying to run a Custom action before Install
Files , this action is to just xcopy existing folder from h:\Sites to
h:\BackupSites , i added the custome action and InstallExecute Sequence as
below:-
<CustomAction Id='BackupFiles' Value ='c:\xcopy /e /c /y h:\Sites
h:\BackupSites' Property='BackupFiles'></CustomAction>
<InstallExecuteSequence>
<Custom Action='BackupFiles' Before='InstallFiles'></Custom>
</InstallExecuteSequence>
My Product.wxs file complie and generates an MSI with no errors.
But when i install the MSI this action is running but with exit code 1 as
Action 16:28:27: BackupFiles.
Action start 16:28:27: BackupFiles.
Action ended 16:28:27: BackupFiles. Return value 1.
it seems the action is running but some error while executing. How can i
Use Xcopy in this scenario to use as custom action to run before
InstallFiles Action.
Waiting.
Thanks
--
View this message in context: http://n2.nabble.com/Running-Custom-Action-Before-InstallFiles-tp1093699p1095539.html
Sent from the wix-users mailing list archive at Nabble.com.
Bhavdeep Singh
2008-09-17 16:04:51 UTC
Permalink
HI Vivek,

Let me understand , are you trying to run your custom action after this TempComp is installed But Before Rest of the components are installed.?
if yes then atleast you need to keep TempComp as one feature and rest components and second feature..Thanks and RegardsBhavdeep Singh
_________________________________________________________________
Stay up to date on your PC, the Web, and your mobile phone with Windows Live.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/
Vivek
2008-09-17 17:01:08 UTC
Permalink
You got it correctly Bhavdeep, yes i was thinking the same way that i have to
keep this in a seperate feature.
But how can i define the InstallExecuteSequece to run it before any thing
else kick off.

Thanks,
Vivek
Post by Bhavdeep Singh
HI Vivek,
Let me understand , are you trying to run your custom action after this
TempComp is installed But Before Rest of the components are installed.?
if yes then atleast you need to keep TempComp as one feature and rest
components and second feature..Thanks and RegardsBhavdeep Singh
Action Before InstallFiles> > > Hi All,> > I am trying some thing
similar. What i am trying to do is I have one file> which i have included
in my msi and i am copying it in "Temp Folder" using a> component which
is getting called in my main feature element> > > <Directory
Id="TempFolder" SourceName="Temp">> <Component Id="TempComp">
Guid="FD8C351E-7DE5-462B-957D-CA3BFF7BA17F">> <File Id="CLEANUP"
Name="cleanup.cmd" LongName="cleanup.cmd">
Source="dependencies/batch/cleanup.cmd" DiskId="1"/>> </Component>>
</Directory>> > i am calling this component in my main feature like
this:> > <Feature Id="ProductFeature" Title="Standalone Product"
Level="1"> Description="Installs all Product components">> <ComponentRef
Id="TempComp"/>> <ComponentRef Id="RegistryComp1" />> <ComponentRef
Id="ProductComponent" />> <ComponentRef Id="OUTPUTFLDR"
/>> <ComponentRef Id="DLLS" />> <ComponentRef Id="MyService"/>>
</Feature>> > Now my problem is i have a custom action (which calls the
file i placed in> Temp folder) which i wish to execute to do some cleanup
before installing my> new files. > Is it possible i can just copy this
file and execute my custom action before> installing any of my files?> >
Thanks in Advance.> > Vivek> > > BOB1981 wrote:> > > > Hi All,> > > >
Everyone has been really helpfull here with me, first thankyou soo much> >
for this help.> > > > Okey now my Question, I am trying to run a Custom
action before Install> > Files , this action is to just xcopy existing
folder from h:\Sites to> > h:\BackupSites , i added the custome action and
InstallExecute Sequence as> > below:-> > > > <CustomAction
Id='BackupFiles' Value ='c:\xcopy /e /c /y h:\Sites> > h:\BackupSites'
Property='BackupFiles'></CustomAction>> > > > <InstallExecuteSequence>> >
<Custom Action='BackupFiles' Before='InstallFiles'></Custom>> > </In
stallExecuteSequence>> > > > My Product.wxs file complie and generates an
MSI with no errors.> > But when i install the MSI this action is running
but with exit code 1 as> > below, part of Log file is below:> > > > Action
16:28:27: BackupFiles. > > Action start 16:28:27: BackupFiles.> > Action
ended 16:28:27: BackupFiles. Return value 1.> > > > it seems the action is
running but some error while executing. How can i> > Use Xcopy in this
scenario to use as custom action to run before> > InstallFiles Action.> >
http://n2.nabble.com/Running-Custom-Action-Before-InstallFiles-tp1093699p1095539.html>
Sent from the wix-users mailing list archive at Nabble.com.> > >
------------------------------------------------------------------------->
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge> Build the coolest Linux based applications with Moblin SDK &
win great prizes> Grand prize is a trip
for two to an Open Source event anywhere in the world>
http://moblin-contest.org/redirect.php?banner_id=100&url=/>
_______________________________________________> WiX-users mailing list>
https://lists.sourceforge.net/lists/listinfo/wix-users
_________________________________________________________________
Stay up to date on your PC, the Web, and your mobile phone with Windows Live.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
--
View this message in context: http://n2.nabble.com/Running-Custom-Action-Before-InstallFiles-tp1093699p1095855.html
Sent from the wix-users mailing list archive at Nabble.com.
Vivek
2008-09-17 17:01:48 UTC
Permalink
You got it correctly Bhavdeep, yes i was thinking the same way that i have to
keep this in a seperate feature.
But how can i define the InstallExecuteSequece to run it before any thing
else kick off.

Thanks,
Vivek
Post by Bhavdeep Singh
HI Vivek,
Let me understand , are you trying to run your custom action after this
TempComp is installed But Before Rest of the components are installed.?
if yes then atleast you need to keep TempComp as one feature and rest
components and second feature..Thanks and RegardsBhavdeep Singh
Action Before InstallFiles> > > Hi All,> > I am trying some thing
similar. What i am trying to do is I have one file> which i have included
in my msi and i am copying it in "Temp Folder" using a> component which
is getting called in my main feature element> > > <Directory
Id="TempFolder" SourceName="Temp">> <Component Id="TempComp">
Guid="FD8C351E-7DE5-462B-957D-CA3BFF7BA17F">> <File Id="CLEANUP"
Name="cleanup.cmd" LongName="cleanup.cmd">
Source="dependencies/batch/cleanup.cmd" DiskId="1"/>> </Component>>
</Directory>> > i am calling this component in my main feature like
this:> > <Feature Id="ProductFeature" Title="Standalone Product"
Level="1"> Description="Installs all Product components">> <ComponentRef
Id="TempComp"/>> <ComponentRef Id="RegistryComp1" />> <ComponentRef
Id="ProductComponent" />> <ComponentRef Id="OUTPUTFLDR"
/>> <ComponentRef Id="DLLS" />> <ComponentRef Id="MyService"/>>
</Feature>> > Now my problem is i have a custom action (which calls the
file i placed in> Temp folder) which i wish to execute to do some cleanup
before installing my> new files. > Is it possible i can just copy this
file and execute my custom action before> installing any of my files?> >
Thanks in Advance.> > Vivek> > > BOB1981 wrote:> > > > Hi All,> > > >
Everyone has been really helpfull here with me, first thankyou soo much> >
for this help.> > > > Okey now my Question, I am trying to run a Custom
action before Install> > Files , this action is to just xcopy existing
folder from h:\Sites to> > h:\BackupSites , i added the custome action and
InstallExecute Sequence as> > below:-> > > > <CustomAction
Id='BackupFiles' Value ='c:\xcopy /e /c /y h:\Sites> > h:\BackupSites'
Property='BackupFiles'></CustomAction>> > > > <InstallExecuteSequence>> >
<Custom Action='BackupFiles' Before='InstallFiles'></Custom>> > </In
stallExecuteSequence>> > > > My Product.wxs file complie and generates an
MSI with no errors.> > But when i install the MSI this action is running
but with exit code 1 as> > below, part of Log file is below:> > > > Action
16:28:27: BackupFiles. > > Action start 16:28:27: BackupFiles.> > Action
ended 16:28:27: BackupFiles. Return value 1.> > > > it seems the action is
running but some error while executing. How can i> > Use Xcopy in this
scenario to use as custom action to run before> > InstallFiles Action.> >
http://n2.nabble.com/Running-Custom-Action-Before-InstallFiles-tp1093699p1095539.html>
Sent from the wix-users mailing list archive at Nabble.com.> > >
------------------------------------------------------------------------->
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge> Build the coolest Linux based applications with Moblin SDK &
win great prizes> Grand prize is a trip
for two to an Open Source event anywhere in the world>
http://moblin-contest.org/redirect.php?banner_id=100&url=/>
_______________________________________________> WiX-users mailing list>
https://lists.sourceforge.net/lists/listinfo/wix-users
_________________________________________________________________
Stay up to date on your PC, the Web, and your mobile phone with Windows Live.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
--
View this message in context: http://n2.nabble.com/Running-Custom-Action-Before-InstallFiles-tp1093699p1095857.html
Sent from the wix-users mailing list archive at Nabble.com.
Bhavdeep Singh
2008-09-17 17:22:11 UTC
Permalink
Hi Vivek,

What actually you are trying to do is to run your custom action After "InstallFiles" but only after one feature. The way i have seen until now is either we can run custom action Before "InstallFiles" system action is complete or After "InstallFiles" system action is complete. You want something in the middle as per Conditional install of one feature. m not sure but i guess Sequece attribute of <Custom> element could help you in that. Try to create a Log of your MSI installation and see what is the sequence number when your feature CompTemp is getting installed and work around on this.
this is how you could create a log which installing Msi.

msiexec /i c:\your-msi-file-name-&-ocation /l c:\you-log-file-name-&-LocationThanks and RegardsBhavdeep Singh
_________________________________________________________________
Stay up to date on your PC, the Web, and your mobile phone with Windows Live.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/
Chad Petersen
2008-09-17 17:25:12 UTC
Permalink
Get Orca. That way you can LOOK at the sequence of ALL actions without
having to even run the install and log anything. Huge time saver.

-----Original Message-----
From: wix-users-***@lists.sourceforge.net
[mailto:wix-users-***@lists.sourceforge.net] On Behalf Of Bhavdeep
Singh
Sent: Wednesday, September 17, 2008 10:22 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Running Custom Action Before InstallFiles

Hi Vivek,

What actually you are trying to do is to run your custom action After
"InstallFiles" but only after one feature. The way i have seen until now
is either we can run custom action Before "InstallFiles" system action
is complete or After "InstallFiles" system action is complete. You want
something in the middle as per Conditional install of one feature. m not
sure but i guess Sequece attribute of <Custom> element could help you in
that. Try to create a Log of your MSI installation and see what is the
sequence number when your feature CompTemp is getting installed and work
around on this.
this is how you could create a log which installing Msi.

msiexec /i c:\your-msi-file-name-&-ocation /l
c:\you-log-file-name-&-LocationThanks and RegardsBhavdeep Singh
To: wix-***@lists.sourceforge.net> Subject: Re: [WiX-users] Running
Custom Action Before InstallFiles> > > You got it correctly Bhavdeep,
yes i was thinking the same way that i have to> keep this in a seperate
feature. > But how can i define the InstallExecuteSequece to run it
before any thing> else kick off.> > Thanks,> Vivek> > > BOB1981 wrote:>
HI Vivek, > > > > Let me understand , are you trying to run your
custom action after this> > TempComp is installed But Before Rest of the
components are installed.?> > if yes then atleast you need to keep
TempComp as one feature and rest> > components and second
feature..Thanks and RegardsBhavdeep Singh> > > > > > > >> Date: Wed, 17
Sep 2008 08:10:59 -0700> From: ***@gmail.com> To:> >>
wix-***@lists.sourceforge.net> Subject: Re: [WiX-users] Running
Custom> >> Action Before InstallFiles> > > Hi All,> > I am trying some
thing> >> similar. What
i am trying to do is I have one file> which i have included> >> in my
msi and i am copying it in "Temp Folder" using a> component which> >> is
getting called in my main feature element> > > <Directory> >>
Id="TempFolder" SourceName="Temp">> <Component Id="TempComp">> >>
Guid="FD8C351E-7DE5-462B-957D-CA3BFF7BA17F">> <File Id="CLEANUP"> >>
Name="cleanup.cmd" LongName="cleanup.cmd">> >>
Source="dependencies/batch/cleanup.cmd" DiskId="1"/>> </Component>>> >>
</Directory>> > i am calling this component in my main feature like> >>
this:> > <Feature Id="ProductFeature" Title="Standalone Product"> >>
Level="1"> Description="Installs all Product components">>
<ComponentRef> >> Id="TempComp"/>> <ComponentRef Id="RegistryComp1" />>
<ComponentRef> >> Id="ProductComponent" />> <ComponentRef
Id="OUTPUTFLDR" > > />> <ComponentRef Id="DLLS" />> <ComponentRef
Id="MyService"/>>> > </Feature>> > Now my problem is i have a custom
action (which calls the> > file i placed in> Temp folder) which i
wish to execute to do some cleanup> > before installing my> new files.
Is it possible i can just copy this> > file and execute my custom
action before> installing any of my files?> >> > Thanks in Advance.> >
Vivek> > > BOB1981 wrote:> > > > Hi All,> > > >> > Everyone has been
really helpfull here with me, first thankyou soo much> >> > for this
help.> > > > Okey now my Question, I am trying to run a Custom> > action
before Install> > Files , this action is to just xcopy existing> >
folder from h:\Sites to> > h:\BackupSites , i added the custome action
and> > InstallExecute Sequence as> > below:-> > > > <CustomAction> >
Id='BackupFiles' Value ='c:\xcopy /e /c /y h:\Sites> > h:\BackupSites'>
Property='BackupFiles'></CustomAction>> > > >
<InstallExecuteSequence>> >> > <Custom Action='BackupFiles'
Before='InstallFiles'></Custom>> > </In> > stallExecuteSequence>> > > >
My Product.wxs file complie and generates an> > MSI with no errors.> >
But when i install the MSI this actio
n is running> > but with exit code 1 as> > below, part of Log file is
below:> > > > Action> > 16:28:27: BackupFiles. > > Action start
16:28:27: BackupFiles.> > Action> > ended 16:28:27: BackupFiles. Return
value 1.> > > > it seems the action is> > running but some error while
executing. How can i> > Use Xcopy in this> > scenario to use as custom
action to run before> > InstallFiles Action.> >> > > > Waiting.> >
Thanks> > > > > > -- > View this message in context:> >
http://n2.nabble.com/Running-Custom-Action-Before-InstallFiles-tp1093699
p1095539.html>> > Sent from the wix-users mailing list archive at
Nabble.com.> > >> >
------------------------------------------------------------------------
->> > This SF.Net email is sponsored by the Moblin Your Move
Developer's> > challenge> Build the coolest Linux based applications
with Moblin SDK &> > win great prizes> Grand prize is a trip> > for two
to an Open Source event anywhere in the world>> >
http://moblin-contest.org/redirect.p
hp?banner_id=100&url=/>> >
_______________________________________________> WiX-users mailing
list>> > WiX-***@lists.sourceforge.net>> >
https://lists.sourceforge.net/lists/listinfo/wix-users> >
_________________________________________________________________> >
Stay up to date on your PC, the Web, and your mobile phone with Windows>
Live.> > http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/>
------------------------------------------------------------------------
-> > This SF.Net email is sponsored by the Moblin Your Move Developer's>
challenge> > Build the coolest Linux based applications with Moblin
SDK & win great> > prizes> > Grand prize is a trip for two to an Open
Source event anywhere in the> > world> >
http://moblin-contest.org/redirect.php?banner_id=100&url=/> >
_______________________________________________> > WiX-users mailing
list> > WiX-***@lists.sourceforge.net> >
https://lists.sourceforge.net/lists/listinfo/wix-users> > > > > > -- >
View
this message in context:
http://n2.nabble.com/Running-Custom-Action-Before-InstallFiles-tp1093699
p1095857.html> Sent from the wix-users mailing list archive at
Nabble.com.> > >
------------------------------------------------------------------------
-> This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge> Build the coolest Linux based applications with Moblin SDK &
win great prizes> Grand prize is a trip for two to an Open Source event
anywhere in the world>
http://moblin-contest.org/redirect.php?banner_id=100&url=/>
_______________________________________________> WiX-users mailing list>
WiX-***@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/wix-users
_________________________________________________________________
Stay up to date on your PC, the Web, and your mobile phone with Windows
Live.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/
------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Vivek
2008-09-17 19:35:24 UTC
Permalink
Thanks for your response, but i am having a hard time fitting this custom
action in between two features.
I checked my Action sequence with Ocra but it doesn't tells me any thing
about sequence of installing a feature. can you please provide me some
example.

Thanks,
Vivek
Post by Chad Petersen
Get Orca. That way you can LOOK at the sequence of ALL actions without
having to even run the install and log anything. Huge time saver.
-----Original Message-----
Singh
Sent: Wednesday, September 17, 2008 10:22 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Running Custom Action Before InstallFiles
Hi Vivek,
What actually you are trying to do is to run your custom action After
"InstallFiles" but only after one feature. The way i have seen until now
is either we can run custom action Before "InstallFiles" system action
is complete or After "InstallFiles" system action is complete. You want
something in the middle as per Conditional install of one feature. m not
sure but i guess Sequece attribute of <Custom> element could help you in
that. Try to create a Log of your MSI installation and see what is the
sequence number when your feature CompTemp is getting installed and work
around on this.
this is how you could create a log which installing Msi.
msiexec /i c:\your-msi-file-name-&-ocation /l
c:\you-log-file-name-&-LocationThanks and RegardsBhavdeep Singh
Custom Action Before InstallFiles> > > You got it correctly Bhavdeep,
yes i was thinking the same way that i have to> keep this in a seperate
feature. > But how can i define the InstallExecuteSequece to run it
before any thing> else kick off.> > Thanks,> Vivek> > > BOB1981 wrote:>
HI Vivek, > > > > Let me understand , are you trying to run your
custom action after this> > TempComp is installed But Before Rest of the
components are installed.?> > if yes then atleast you need to keep
TempComp as one feature and rest> > components and second
feature..Thanks and RegardsBhavdeep Singh> > > > > > > >> Date: Wed, 17
Custom> >> Action Before InstallFiles> > > Hi All,> > I am trying some
thing> >> similar. What
i am trying to do is I have one file> which i have included> >> in my
msi and i am copying it in "Temp Folder" using a> component which> >> is
getting called in my main feature element> > > <Directory> >>
Id="TempFolder" SourceName="Temp">> <Component Id="TempComp">> >>
Guid="FD8C351E-7DE5-462B-957D-CA3BFF7BA17F">> <File Id="CLEANUP"> >>
Name="cleanup.cmd" LongName="cleanup.cmd">> >>
Source="dependencies/batch/cleanup.cmd" DiskId="1"/>> </Component>>> >>
</Directory>> > i am calling this component in my main feature like> >>
this:> > <Feature Id="ProductFeature" Title="Standalone Product"> >>
Level="1"> Description="Installs all Product components">>
<ComponentRef> >> Id="TempComp"/>> <ComponentRef Id="RegistryComp1" />>
<ComponentRef> >> Id="ProductComponent" />> <ComponentRef
Id="OUTPUTFLDR" > > />> <ComponentRef Id="DLLS" />> <ComponentRef
Id="MyService"/>>> > </Feature>> > Now my problem is i have a custom
action (which calls the> > file i placed in> Temp folder) which i
wish to execute to do some cleanup> > before installing my> new files.
Is it possible i can just copy this> > file and execute my custom
action before> installing any of my files?> >> > Thanks in Advance.> >
Vivek> > > BOB1981 wrote:> > > > Hi All,> > > >> > Everyone has been
really helpfull here with me, first thankyou soo much> >> > for this
help.> > > > Okey now my Question, I am trying to run a Custom> > action
before Install> > Files , this action is to just xcopy existing> >
folder from h:\Sites to> > h:\BackupSites , i added the custome action
and> > InstallExecute Sequence as> > below:-> > > > <CustomAction> >
Id='BackupFiles' Value ='c:\xcopy /e /c /y h:\Sites> > h:\BackupSites'>
Property='BackupFiles'></CustomAction>> > > >
<InstallExecuteSequence>> >> > <Custom Action='BackupFiles'
Before='InstallFiles'></Custom>> > </In> > stallExecuteSequence>> > > >
My Product.wxs file complie and generates an> > MSI with no errors.> >
But when i install the MSI this actio
n is running> > but with exit code 1 as> > below, part of Log file is
below:> > > > Action> > 16:28:27: BackupFiles. > > Action start
16:28:27: BackupFiles.> > Action> > ended 16:28:27: BackupFiles. Return
value 1.> > > > it seems the action is> > running but some error while
executing. How can i> > Use Xcopy in this> > scenario to use as custom
action to run before> > InstallFiles Action.> >> > > > Waiting.> >
Thanks> > > > > > -- > View this message in context:> >
http://n2.nabble.com/Running-Custom-Action-Before-InstallFiles-tp1093699
p1095539.html>> > Sent from the wix-users mailing list archive at
Nabble.com.> > >> >
------------------------------------------------------------------------
->> > This SF.Net email is sponsored by the Moblin Your Move
Developer's> > challenge> Build the coolest Linux based applications
with Moblin SDK &> > win great prizes> Grand prize is a trip> > for two
to an Open Source event anywhere in the world>> >
http://moblin-contest.org/redirect.p
hp?banner_id=100&url=/>> >
_______________________________________________> WiX-users mailing
https://lists.sourceforge.net/lists/listinfo/wix-users> >
_________________________________________________________________> >
Stay up to date on your PC, the Web, and your mobile phone with Windows>
Live.> > http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/>
------------------------------------------------------------------------
-> > This SF.Net email is sponsored by the Moblin Your Move Developer's>
challenge> > Build the coolest Linux based applications with Moblin
SDK & win great> > prizes> > Grand prize is a trip for two to an Open
Source event anywhere in the> > world> >
http://moblin-contest.org/redirect.php?banner_id=100&url=/> >
_______________________________________________> > WiX-users mailing
https://lists.sourceforge.net/lists/listinfo/wix-users> > > > > > -- >
View
http://n2.nabble.com/Running-Custom-Action-Before-InstallFiles-tp1093699
p1095857.html> Sent from the wix-users mailing list archive at
Nabble.com.> > >
------------------------------------------------------------------------
-> This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge> Build the coolest Linux based applications with Moblin SDK &
win great prizes> Grand prize is a trip for two to an Open Source event
anywhere in the world>
http://moblin-contest.org/redirect.php?banner_id=100&url=/>
_______________________________________________> WiX-users mailing list>
https://lists.sourceforge.net/lists/listinfo/wix-users
_________________________________________________________________
Stay up to date on your PC, the Web, and your mobile phone with Windows Live.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/
------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
--
View this message in context: http://n2.nabble.com/Running-Custom-Action-Before-InstallFiles-tp1093699p1096264.html
Sent from the wix-users mailing list archive at Nabble.com.
Chad Petersen
2008-09-17 19:56:36 UTC
Permalink
I could be wrong, but I don't think there is any support in MSI for what
you are trying to do. What makes you believe this is possible?

-----Original Message-----
From: wix-users-***@lists.sourceforge.net
[mailto:wix-users-***@lists.sourceforge.net] On Behalf Of Vivek
Sent: Wednesday, September 17, 2008 12:35 PM
To: wix-***@lists.sourceforge.net
Subject: Re: [WiX-users] Running Custom Action Before InstallFiles


Thanks for your response, but i am having a hard time fitting this
custom
action in between two features.
I checked my Action sequence with Ocra but it doesn't tells me any thing
about sequence of installing a feature. can you please provide me some
example.

Thanks,
Vivek
Post by Chad Petersen
Get Orca. That way you can LOOK at the sequence of ALL actions without
having to even run the install and log anything. Huge time saver.
-----Original Message-----
Singh
Sent: Wednesday, September 17, 2008 10:22 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Running Custom Action Before InstallFiles
Hi Vivek,
What actually you are trying to do is to run your custom action After
"InstallFiles" but only after one feature. The way i have seen until now
is either we can run custom action Before "InstallFiles" system action
is complete or After "InstallFiles" system action is complete. You want
something in the middle as per Conditional install of one feature. m not
sure but i guess Sequece attribute of <Custom> element could help you in
that. Try to create a Log of your MSI installation and see what is the
sequence number when your feature CompTemp is getting installed and work
around on this.
this is how you could create a log which installing Msi.
msiexec /i c:\your-msi-file-name-&-ocation /l
c:\you-log-file-name-&-LocationThanks and RegardsBhavdeep Singh
Custom Action Before InstallFiles> > > You got it correctly Bhavdeep,
yes i was thinking the same way that i have to> keep this in a
seperate
Post by Chad Petersen
feature. > But how can i define the InstallExecuteSequece to run it
before any thing> else kick off.> > Thanks,> Vivek> > > BOB1981 wrote:>
HI Vivek, > > > > Let me understand , are you trying to run your
custom action after this> > TempComp is installed But Before Rest of the
components are installed.?> > if yes then atleast you need to keep
TempComp as one feature and rest> > components and second
feature..Thanks and RegardsBhavdeep Singh> > > > > > > >> Date: Wed, 17
Custom> >> Action Before InstallFiles> > > Hi All,> > I am trying some
thing> >> similar. What
i am trying to do is I have one file> which i have included> >> in my
msi and i am copying it in "Temp Folder" using a> component which> >> is
getting called in my main feature element> > > <Directory> >>
Id="TempFolder" SourceName="Temp">> <Component Id="TempComp">> >>
Guid="FD8C351E-7DE5-462B-957D-CA3BFF7BA17F">> <File Id="CLEANUP"> >>
Name="cleanup.cmd" LongName="cleanup.cmd">> >>
Source="dependencies/batch/cleanup.cmd" DiskId="1"/>> </Component>>>
</Directory>> > i am calling this component in my main feature like>
this:> > <Feature Id="ProductFeature" Title="Standalone Product"> >>
Level="1"> Description="Installs all Product components">>
<ComponentRef> >> Id="TempComp"/>> <ComponentRef Id="RegistryComp1" />>
<ComponentRef> >> Id="ProductComponent" />> <ComponentRef
Id="OUTPUTFLDR" > > />> <ComponentRef Id="DLLS" />> <ComponentRef
Id="MyService"/>>> > </Feature>> > Now my problem is i have a custom
action (which calls the> > file i placed in> Temp folder) which i
wish to execute to do some cleanup> > before installing my> new files.
Is it possible i can just copy this> > file and execute my custom
action before> installing any of my files?> >> > Thanks in Advance.> >
Vivek> > > BOB1981 wrote:> > > > Hi All,> > > >> > Everyone has been
really helpfull here with me, first thankyou soo much> >> > for this
help.> > > > Okey now my Question, I am trying to run a Custom> > action
before Install> > Files , this action is to just xcopy existing> >
folder from h:\Sites to> > h:\BackupSites , i added the custome action
and> > InstallExecute Sequence as> > below:-> > > > <CustomAction> >
Id='BackupFiles' Value ='c:\xcopy /e /c /y h:\Sites> >
h:\BackupSites'>
Post by Chad Petersen
Property='BackupFiles'></CustomAction>> > > >
<InstallExecuteSequence>> >> > <Custom Action='BackupFiles'
Before='InstallFiles'></Custom>> > </In> > stallExecuteSequence>> > >
My Product.wxs file complie and generates an> > MSI with no errors.> >
But when i install the MSI this actio
n is running> > but with exit code 1 as> > below, part of Log file is
below:> > > > Action> > 16:28:27: BackupFiles. > > Action start
16:28:27: BackupFiles.> > Action> > ended 16:28:27: BackupFiles. Return
value 1.> > > > it seems the action is> > running but some error while
executing. How can i> > Use Xcopy in this> > scenario to use as custom
action to run before> > InstallFiles Action.> >> > > > Waiting.> >
Thanks> > > > > > -- > View this message in context:> >
http://n2.nabble.com/Running-Custom-Action-Before-InstallFiles-tp1093699
Post by Chad Petersen
p1095539.html>> > Sent from the wix-users mailing list archive at
Nabble.com.> > >> >
------------------------------------------------------------------------
Post by Chad Petersen
->> > This SF.Net email is sponsored by the Moblin Your Move
Developer's> > challenge> Build the coolest Linux based applications
with Moblin SDK &> > win great prizes> Grand prize is a trip> > for two
to an Open Source event anywhere in the world>> >
http://moblin-contest.org/redirect.p
hp?banner_id=100&url=/>> >
_______________________________________________> WiX-users mailing
https://lists.sourceforge.net/lists/listinfo/wix-users> >
_________________________________________________________________> >
Stay up to date on your PC, the Web, and your mobile phone with Windows>
Live.> >
http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/>
------------------------------------------------------------------------
Post by Chad Petersen
-> > This SF.Net email is sponsored by the Moblin Your Move
Developer's>
Post by Chad Petersen
challenge> > Build the coolest Linux based applications with Moblin
SDK & win great> > prizes> > Grand prize is a trip for two to an Open
Source event anywhere in the> > world> >
http://moblin-contest.org/redirect.php?banner_id=100&url=/> >
_______________________________________________> > WiX-users mailing
https://lists.sourceforge.net/lists/listinfo/wix-users> > > > > > -- >
View
http://n2.nabble.com/Running-Custom-Action-Before-InstallFiles-tp1093699
Post by Chad Petersen
p1095857.html> Sent from the wix-users mailing list archive at
Nabble.com.> > >
------------------------------------------------------------------------
Post by Chad Petersen
-> This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge> Build the coolest Linux based applications with Moblin SDK &
win great prizes> Grand prize is a trip for two to an Open Source event
anywhere in the world>
http://moblin-contest.org/redirect.php?banner_id=100&url=/>
_______________________________________________> WiX-users mailing list>
https://lists.sourceforge.net/lists/listinfo/wix-users
_________________________________________________________________
Stay up to date on your PC, the Web, and your mobile phone with
Windows
Post by Chad Petersen
Live.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/
------------------------------------------------------------------------
Post by Chad Petersen
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------
-
Post by Chad Petersen
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
--
View this message in context:
http://n2.nabble.com/Running-Custom-Action-Before-InstallFiles-tp1093699
p1096264.html
Sent from the wix-users mailing list archive at Nabble.com.


------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Francis Kam
2008-09-17 20:11:38 UTC
Permalink
I was under the impression that InstallFiles is a single discrete action and
can not be broken down per-file. I don't think what you're trying to do is
possible with your current approach. Instead, I would consider putting your
CA in the Binary table rather than explicitly installing it on the file
system. Although I just realized you're using a batch file... I can't recall
if you can put a batch file in the Binary table (although I imagine you can
put any sort of file in there).

What are you actually trying to accomplish? What exactly does the batch file
do?

-Francis
Post by Vivek
Thanks for your response, but i am having a hard time fitting this custom
action in between two features.
I checked my Action sequence with Ocra but it doesn't tells me any thing
about sequence of installing a feature. can you please provide me some
example.
Thanks,
Vivek
Vivek
2008-09-17 21:03:56 UTC
Permalink
Hi Francis,

May be my approach is wrong as i am a newbie with Wix with no prior
experience on Install Shield.

What i am trying to do here is we have some users that are using a msi
(created with Install Shield) and we are replacing this old msi with the new
one which we are creating with Wix.

So for removing old msi completely from user machine we have created a batch
file that cleans up registry, removes product related files and folders and
removes service that are installed with the old version of msi (created with
Install shield).

And before i install my new version i want to execute this script to clean
all files and setting related to prior msi.

Please suggest if there is any better approach to achieve my goal.

Thanks,
Vivek
Post by Francis Kam
I was under the impression that InstallFiles is a single discrete action and
can not be broken down per-file. I don't think what you're trying to do is
possible with your current approach. Instead, I would consider putting your
CA in the Binary table rather than explicitly installing it on the file
system. Although I just realized you're using a batch file... I can't recall
if you can put a batch file in the Binary table (although I imagine you can
put any sort of file in there).
What are you actually trying to accomplish? What exactly does the batch file
do?
-Francis
Post by Vivek
Thanks for your response, but i am having a hard time fitting this custom
action in between two features.
I checked my Action sequence with Ocra but it doesn't tells me any thing
about sequence of installing a feature. can you please provide me some
example.
Thanks,
Vivek
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
--
View this message in context: http://n2.nabble.com/Running-Custom-Action-Before-InstallFiles-tp1093699p1096515.html
Sent from the wix-users mailing list archive at Nabble.com.
Chad Petersen
2008-09-17 21:12:42 UTC
Permalink
I'm not Francis, but have a thought for you.

Why not have your new MSI remove the older InstallShield MSI using the
Upgrade element? It's built in. I always opt for built in features
before using anything custom if it is available. Don't make things
harder than they are.

-----Original Message-----
From: wix-users-***@lists.sourceforge.net
[mailto:wix-users-***@lists.sourceforge.net] On Behalf Of Vivek
Sent: Wednesday, September 17, 2008 2:04 PM
To: wix-***@lists.sourceforge.net
Subject: Re: [WiX-users] Running Custom Action Before InstallFiles


Hi Francis,

May be my approach is wrong as i am a newbie with Wix with no prior
experience on Install Shield.

What i am trying to do here is we have some users that are using a msi
(created with Install Shield) and we are replacing this old msi with the
new
one which we are creating with Wix.

So for removing old msi completely from user machine we have created a
batch
file that cleans up registry, removes product related files and folders
and
removes service that are installed with the old version of msi (created
with
Install shield).

And before i install my new version i want to execute this script to
clean
all files and setting related to prior msi.

Please suggest if there is any better approach to achieve my goal.

Thanks,
Vivek
Post by Francis Kam
I was under the impression that InstallFiles is a single discrete
action
Post by Francis Kam
and
can not be broken down per-file. I don't think what you're trying to do is
possible with your current approach. Instead, I would consider putting your
CA in the Binary table rather than explicitly installing it on the file
system. Although I just realized you're using a batch file... I can't recall
if you can put a batch file in the Binary table (although I imagine
you
Post by Francis Kam
can
put any sort of file in there).
What are you actually trying to accomplish? What exactly does the
batch
Post by Francis Kam
file
do?
-Francis
Post by Vivek
Thanks for your response, but i am having a hard time fitting this custom
action in between two features.
I checked my Action sequence with Ocra but it doesn't tells me any thing
about sequence of installing a feature. can you please provide me some
example.
Thanks,
Vivek
------------------------------------------------------------------------
-
Post by Francis Kam
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
--
View this message in context:
http://n2.nabble.com/Running-Custom-Action-Before-InstallFiles-tp1093699
p1096515.html
Sent from the wix-users mailing list archive at Nabble.com.


------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Vivek
2008-09-17 21:40:27 UTC
Permalink
Thanks Chad, but i am running this msi under too many different scenario's

1) If the user is installing by his own i want to preserve some registry
settings (I do not want this cleanup thing to run in this case.
2) If we are pushing the install from the server using:
msiexec /i myapp.msi MYFLAG=1

in this case i want to run the cleanup files, which is giving me all this
pain :-((.

Thanks Again

quote author="Chad Petersen">
I'm not Francis, but have a thought for you.

Why not have your new MSI remove the older InstallShield MSI using the
Upgrade element? It's built in. I always opt for built in features
before using anything custom if it is available. Don't make things
harder than they are.

-----Original Message-----
From: wix-users-***@lists.sourceforge.net
[mailto:wix-users-***@lists.sourceforge.net] On Behalf Of Vivek
Sent: Wednesday, September 17, 2008 2:04 PM
To: wix-***@lists.sourceforge.net
Subject: Re: [WiX-users] Running Custom Action Before InstallFiles


Hi Francis,

May be my approach is wrong as i am a newbie with Wix with no prior
experience on Install Shield.

What i am trying to do here is we have some users that are using a msi
(created with Install Shield) and we are replacing this old msi with the
new
one which we are creating with Wix.

So for removing old msi completely from user machine we have created a
batch
file that cleans up registry, removes product related files and folders
and
removes service that are installed with the old version of msi (created
with
Install shield).

And before i install my new version i want to execute this script to
clean
all files and setting related to prior msi.

Please suggest if there is any better approach to achieve my goal.

Thanks,
Vivek
Post by Francis Kam
I was under the impression that InstallFiles is a single discrete
action
Post by Francis Kam
and
can not be broken down per-file. I don't think what you're trying to do is
possible with your current approach. Instead, I would consider putting your
CA in the Binary table rather than explicitly installing it on the file
system. Although I just realized you're using a batch file... I can't recall
if you can put a batch file in the Binary table (although I imagine
you
Post by Francis Kam
can
put any sort of file in there).
What are you actually trying to accomplish? What exactly does the
batch
Post by Francis Kam
file
do?
-Francis
Post by Vivek
Thanks for your response, but i am having a hard time fitting this custom
action in between two features.
I checked my Action sequence with Ocra but it doesn't tells me any thing
about sequence of installing a feature. can you please provide me some
example.
Thanks,
Vivek
------------------------------------------------------------------------
-
Post by Francis Kam
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
--
View this message in context:
http://n2.nabble.com/Running-Custom-Action-Before-InstallFiles-tp1093699
p1096515.html
Sent from the wix-users mailing list archive at Nabble.com.


------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
--
View this message in context: http://n2.nabble.com/Running-Custom-Action-Before-InstallFiles-tp1093699p1096637.html
Sent from the wix-users mailing list archive at Nabble.com.
Chad Petersen
2008-09-17 22:19:52 UTC
Permalink
Then, it sounds to me like you will want to expand you Custom Action
script itself to not only run the clean up, but also copy the file onto
the system you use for the clean up. That should do it. But, no way to
copy one Feature, do some Custom Action and then copy another Feature,
that I'm aware of.

-----Original Message-----
From: wix-users-***@lists.sourceforge.net
[mailto:wix-users-***@lists.sourceforge.net] On Behalf Of Vivek
Sent: Wednesday, September 17, 2008 2:40 PM
To: wix-***@lists.sourceforge.net
Subject: Re: [WiX-users] Running Custom Action Before InstallFiles


Thanks Chad, but i am running this msi under too many different
scenario's

1) If the user is installing by his own i want to preserve some registry
settings (I do not want this cleanup thing to run in this case.
2) If we are pushing the install from the server using:
msiexec /i myapp.msi MYFLAG=1

in this case i want to run the cleanup files, which is giving me all
this
pain :-((.

Thanks Again

quote author="Chad Petersen">
I'm not Francis, but have a thought for you.

Why not have your new MSI remove the older InstallShield MSI using the
Upgrade element? It's built in. I always opt for built in features
before using anything custom if it is available. Don't make things
harder than they are.

-----Original Message-----
From: wix-users-***@lists.sourceforge.net
[mailto:wix-users-***@lists.sourceforge.net] On Behalf Of Vivek
Sent: Wednesday, September 17, 2008 2:04 PM
To: wix-***@lists.sourceforge.net
Subject: Re: [WiX-users] Running Custom Action Before InstallFiles


Hi Francis,

May be my approach is wrong as i am a newbie with Wix with no prior
experience on Install Shield.

What i am trying to do here is we have some users that are using a msi
(created with Install Shield) and we are replacing this old msi with the
new
one which we are creating with Wix.

So for removing old msi completely from user machine we have created a
batch
file that cleans up registry, removes product related files and folders
and
removes service that are installed with the old version of msi (created
with
Install shield).

And before i install my new version i want to execute this script to
clean
all files and setting related to prior msi.

Please suggest if there is any better approach to achieve my goal.

Thanks,
Vivek
Post by Francis Kam
I was under the impression that InstallFiles is a single discrete
action
Post by Francis Kam
and
can not be broken down per-file. I don't think what you're trying to do is
possible with your current approach. Instead, I would consider putting your
CA in the Binary table rather than explicitly installing it on the file
system. Although I just realized you're using a batch file... I can't recall
if you can put a batch file in the Binary table (although I imagine
you
Post by Francis Kam
can
put any sort of file in there).
What are you actually trying to accomplish? What exactly does the
batch
Post by Francis Kam
file
do?
-Francis
Post by Vivek
Thanks for your response, but i am having a hard time fitting this custom
action in between two features.
I checked my Action sequence with Ocra but it doesn't tells me any thing
about sequence of installing a feature. can you please provide me some
example.
Thanks,
Vivek
------------------------------------------------------------------------
-
Post by Francis Kam
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
--
View this message in context:
http://n2.nabble.com/Running-Custom-Action-Before-InstallFiles-tp1093699
p1096515.html
Sent from the wix-users mailing list archive at Nabble.com.


------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
--
View this message in context:
http://n2.nabble.com/Running-Custom-Action-Before-InstallFiles-tp1093699
p1096637.html
Sent from the wix-users mailing list archive at Nabble.com.


------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Vivek
2008-09-18 15:16:48 UTC
Permalink
First of all thanks to everyone for being so helpful so far, Chad my special
thanks to you.
Chad may be i am asking you for a extra favour if copying a file from
CustomAction is possible can you provide me an example i will be very
thankful to you.

Thanks,
Vivek
Post by Chad Petersen
Then, it sounds to me like you will want to expand you Custom Action
script itself to not only run the clean up, but also copy the file onto
the system you use for the clean up. That should do it. But, no way to
copy one Feature, do some Custom Action and then copy another Feature,
that I'm aware of.
-----Original Message-----
Sent: Wednesday, September 17, 2008 2:40 PM
Subject: Re: [WiX-users] Running Custom Action Before InstallFiles
Thanks Chad, but i am running this msi under too many different scenario's
1) If the user is installing by his own i want to preserve some registry
settings (I do not want this cleanup thing to run in this case.
msiexec /i myapp.msi MYFLAG=1
in this case i want to run the cleanup files, which is giving me all this
pain :-((.
Thanks Again
quote author="Chad Petersen">
I'm not Francis, but have a thought for you.
Why not have your new MSI remove the older InstallShield MSI using the
Upgrade element? It's built in. I always opt for built in features
before using anything custom if it is available. Don't make things
harder than they are.
-----Original Message-----
Sent: Wednesday, September 17, 2008 2:04 PM
Subject: Re: [WiX-users] Running Custom Action Before InstallFiles
Hi Francis,
May be my approach is wrong as i am a newbie with Wix with no prior
experience on Install Shield.
What i am trying to do here is we have some users that are using a msi
(created with Install Shield) and we are replacing this old msi with the new
one which we are creating with Wix.
So for removing old msi completely from user machine we have created a batch
file that cleans up registry, removes product related files and folders and
removes service that are installed with the old version of msi (created with
Install shield).
And before i install my new version i want to execute this script to clean
all files and setting related to prior msi.
Please suggest if there is any better approach to achieve my goal.
Thanks,
Vivek
Post by Francis Kam
I was under the impression that InstallFiles is a single discrete
action
Post by Francis Kam
and
can not be broken down per-file. I don't think what you're trying to
do is
Post by Francis Kam
possible with your current approach. Instead, I would consider putting your
CA in the Binary table rather than explicitly installing it on the
file
Post by Francis Kam
system. Although I just realized you're using a batch file... I can't recall
if you can put a batch file in the Binary table (although I imagine
you
Post by Francis Kam
can
put any sort of file in there).
What are you actually trying to accomplish? What exactly does the
batch
Post by Francis Kam
file
do?
-Francis
Post by Vivek
Thanks for your response, but i am having a hard time fitting this
custom
Post by Francis Kam
Post by Vivek
action in between two features.
I checked my Action sequence with Ocra but it doesn't tells me any
thing
Post by Francis Kam
Post by Vivek
about sequence of installing a feature. can you please provide me
some
Post by Francis Kam
Post by Vivek
example.
Thanks,
Vivek
------------------------------------------------------------------------
-
Post by Francis Kam
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
--
http://n2.nabble.com/Running-Custom-Action-Before-InstallFiles-tp1093699
p1096515.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
--
http://n2.nabble.com/Running-Custom-Action-Before-InstallFiles-tp1093699
p1096637.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
--
View this message in context: http://n2.nabble.com/Running-Custom-Action-Before-InstallFiles-tp1093699p1098454.html
Sent from the wix-users mailing list archive at Nabble.com.
Chad Petersen
2008-09-18 15:32:05 UTC
Permalink
Since there are various languages available to write such a Custom
Action in I won't venture down that path myself, but I'd just say you
can copy a file using a batch file, a VBS, a JS or C++ and likely
others. The first set of Custom Actions calls whatever method chosen
above to copy the file on board and a second set of Custom Actions
launches the clean-up itself by calling that clean-up file process that
was copied on in the first step. Condition the Custom Actions to run or
not based off of your command line MYFLAG property. I'd think that
should be possible.

-----Original Message-----
From: wix-users-***@lists.sourceforge.net
[mailto:wix-users-***@lists.sourceforge.net] On Behalf Of Vivek
Sent: Thursday, September 18, 2008 8:17 AM
To: wix-***@lists.sourceforge.net
Subject: Re: [WiX-users] Running Custom Action Before InstallFiles


First of all thanks to everyone for being so helpful so far, Chad my
special
thanks to you.
Chad may be i am asking you for a extra favour if copying a file from
CustomAction is possible can you provide me an example i will be very
thankful to you.

Thanks,
Vivek
Post by Chad Petersen
Then, it sounds to me like you will want to expand you Custom Action
script itself to not only run the clean up, but also copy the file onto
the system you use for the clean up. That should do it. But, no way to
copy one Feature, do some Custom Action and then copy another Feature,
that I'm aware of.
-----Original Message-----
Sent: Wednesday, September 17, 2008 2:40 PM
Subject: Re: [WiX-users] Running Custom Action Before InstallFiles
Thanks Chad, but i am running this msi under too many different scenario's
1) If the user is installing by his own i want to preserve some registry
settings (I do not want this cleanup thing to run in this case.
msiexec /i myapp.msi MYFLAG=1
in this case i want to run the cleanup files, which is giving me all this
pain :-((.
Thanks Again
quote author="Chad Petersen">
I'm not Francis, but have a thought for you.
Why not have your new MSI remove the older InstallShield MSI using the
Upgrade element? It's built in. I always opt for built in features
before using anything custom if it is available. Don't make things
harder than they are.
-----Original Message-----
Sent: Wednesday, September 17, 2008 2:04 PM
Subject: Re: [WiX-users] Running Custom Action Before InstallFiles
Hi Francis,
May be my approach is wrong as i am a newbie with Wix with no prior
experience on Install Shield.
What i am trying to do here is we have some users that are using a msi
(created with Install Shield) and we are replacing this old msi with
the
Post by Chad Petersen
new
one which we are creating with Wix.
So for removing old msi completely from user machine we have created a batch
file that cleans up registry, removes product related files and
folders
Post by Chad Petersen
and
removes service that are installed with the old version of msi
(created
Post by Chad Petersen
with
Install shield).
And before i install my new version i want to execute this script to clean
all files and setting related to prior msi.
Please suggest if there is any better approach to achieve my goal.
Thanks,
Vivek
Post by Francis Kam
I was under the impression that InstallFiles is a single discrete
action
Post by Francis Kam
and
can not be broken down per-file. I don't think what you're trying to
do is
Post by Francis Kam
possible with your current approach. Instead, I would consider
putting
Post by Chad Petersen
Post by Francis Kam
your
CA in the Binary table rather than explicitly installing it on the
file
Post by Francis Kam
system. Although I just realized you're using a batch file... I can't recall
if you can put a batch file in the Binary table (although I imagine
you
Post by Francis Kam
can
put any sort of file in there).
What are you actually trying to accomplish? What exactly does the
batch
Post by Francis Kam
file
do?
-Francis
Post by Vivek
Thanks for your response, but i am having a hard time fitting this
custom
Post by Francis Kam
Post by Vivek
action in between two features.
I checked my Action sequence with Ocra but it doesn't tells me any
thing
Post by Francis Kam
Post by Vivek
about sequence of installing a feature. can you please provide me
some
Post by Francis Kam
Post by Vivek
example.
Thanks,
Vivek
------------------------------------------------------------------------
Post by Chad Petersen
-
Post by Francis Kam
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
--
http://n2.nabble.com/Running-Custom-Action-Before-InstallFiles-tp1093699
Post by Chad Petersen
p1096515.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------
Post by Chad Petersen
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------
Post by Chad Petersen
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
--
http://n2.nabble.com/Running-Custom-Action-Before-InstallFiles-tp1093699
Post by Chad Petersen
p1096637.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------
Post by Chad Petersen
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------
-
Post by Chad Petersen
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
--
View this message in context:
http://n2.nabble.com/Running-Custom-Action-Before-InstallFiles-tp1093699
p1098454.html
Sent from the wix-users mailing list archive at Nabble.com.


------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Vivek
2008-09-18 19:38:41 UTC
Permalink
Thanks again Chad for your response.
I found a work around that problem. Now insted of doing every thing in one
go. We will run msiexec command twice
for the first time i will run it with the flag which will normally install
every thing and than execute that batch file and clean up every thing
installed previously (it also removed content my msi in installing). So this
will give me a clean machine. Again in second step i am running msiexec
without passing flag which will install my msi normally.:-)

Vivek
Post by Chad Petersen
Since there are various languages available to write such a Custom
Action in I won't venture down that path myself, but I'd just say you
can copy a file using a batch file, a VBS, a JS or C++ and likely
others. The first set of Custom Actions calls whatever method chosen
above to copy the file on board and a second set of Custom Actions
launches the clean-up itself by calling that clean-up file process that
was copied on in the first step. Condition the Custom Actions to run or
not based off of your command line MYFLAG property. I'd think that
should be possible.
-----Original Message-----
Sent: Thursday, September 18, 2008 8:17 AM
Subject: Re: [WiX-users] Running Custom Action Before InstallFiles
First of all thanks to everyone for being so helpful so far, Chad my special
thanks to you.
Chad may be i am asking you for a extra favour if copying a file from
CustomAction is possible can you provide me an example i will be very
thankful to you.
Thanks,
Vivek
Post by Chad Petersen
Then, it sounds to me like you will want to expand you Custom Action
script itself to not only run the clean up, but also copy the file
onto
Post by Chad Petersen
the system you use for the clean up. That should do it. But, no way to
copy one Feature, do some Custom Action and then copy another Feature,
that I'm aware of.
-----Original Message-----
Sent: Wednesday, September 17, 2008 2:40 PM
Subject: Re: [WiX-users] Running Custom Action Before InstallFiles
Thanks Chad, but i am running this msi under too many different scenario's
1) If the user is installing by his own i want to preserve some
registry
Post by Chad Petersen
settings (I do not want this cleanup thing to run in this case.
msiexec /i myapp.msi MYFLAG=1
in this case i want to run the cleanup files, which is giving me all this
pain :-((.
Thanks Again
quote author="Chad Petersen">
I'm not Francis, but have a thought for you.
Why not have your new MSI remove the older InstallShield MSI using the
Upgrade element? It's built in. I always opt for built in features
before using anything custom if it is available. Don't make things
harder than they are.
-----Original Message-----
Sent: Wednesday, September 17, 2008 2:04 PM
Subject: Re: [WiX-users] Running Custom Action Before InstallFiles
Hi Francis,
May be my approach is wrong as i am a newbie with Wix with no prior
experience on Install Shield.
What i am trying to do here is we have some users that are using a msi
(created with Install Shield) and we are replacing this old msi with
the
Post by Chad Petersen
new
one which we are creating with Wix.
So for removing old msi completely from user machine we have created a batch
file that cleans up registry, removes product related files and
folders
Post by Chad Petersen
and
removes service that are installed with the old version of msi
(created
Post by Chad Petersen
with
Install shield).
And before i install my new version i want to execute this script to clean
all files and setting related to prior msi.
Please suggest if there is any better approach to achieve my goal.
Thanks,
Vivek
Post by Francis Kam
I was under the impression that InstallFiles is a single discrete
action
Post by Francis Kam
and
can not be broken down per-file. I don't think what you're trying to
do is
Post by Francis Kam
possible with your current approach. Instead, I would consider
putting
Post by Chad Petersen
Post by Francis Kam
your
CA in the Binary table rather than explicitly installing it on the
file
Post by Francis Kam
system. Although I just realized you're using a batch file... I can't recall
if you can put a batch file in the Binary table (although I imagine
you
Post by Francis Kam
can
put any sort of file in there).
What are you actually trying to accomplish? What exactly does the
batch
Post by Francis Kam
file
do?
-Francis
Post by Vivek
Thanks for your response, but i am having a hard time fitting this
custom
Post by Francis Kam
Post by Vivek
action in between two features.
I checked my Action sequence with Ocra but it doesn't tells me any
thing
Post by Francis Kam
Post by Vivek
about sequence of installing a feature. can you please provide me
some
Post by Francis Kam
Post by Vivek
example.
Thanks,
Vivek
------------------------------------------------------------------------
Post by Chad Petersen
-
Post by Francis Kam
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win
great
Post by Chad Petersen
Post by Francis Kam
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
--
http://n2.nabble.com/Running-Custom-Action-Before-InstallFiles-tp1093699
Post by Chad Petersen
p1096515.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------
Post by Chad Petersen
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------
Post by Chad Petersen
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
--
http://n2.nabble.com/Running-Custom-Action-Before-InstallFiles-tp1093699
Post by Chad Petersen
p1096637.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------
Post by Chad Petersen
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------
-
Post by Chad Petersen
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
--
http://n2.nabble.com/Running-Custom-Action-Before-InstallFiles-tp1093699
p1098454.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
--
View this message in context: http://n2.nabble.com/Running-Custom-Action-Before-InstallFiles-tp1093699p1099195.html
Sent from the wix-users mailing list archive at Nabble.com.
Rob Mensching
2008-09-19 09:36:57 UTC
Permalink
What happens if the user cancels somewhere in the middle of the install? Sounds like all kinds of stuff can end up orphaned.

-----Original Message-----
From: wix-users-***@lists.sourceforge.net [mailto:wix-users-***@lists.sourceforge.net] On Behalf Of Vivek
Sent: Thursday, September 18, 2008 12:39
To: wix-***@lists.sourceforge.net
Subject: Re: [WiX-users] Running Custom Action Before InstallFiles


Thanks again Chad for your response.
I found a work around that problem. Now insted of doing every thing in one
go. We will run msiexec command twice
for the first time i will run it with the flag which will normally install
every thing and than execute that batch file and clean up every thing
installed previously (it also removed content my msi in installing). So this
will give me a clean machine. Again in second step i am running msiexec
without passing flag which will install my msi normally.:-)

Vivek
Post by Chad Petersen
Since there are various languages available to write such a Custom
Action in I won't venture down that path myself, but I'd just say you
can copy a file using a batch file, a VBS, a JS or C++ and likely
others. The first set of Custom Actions calls whatever method chosen
above to copy the file on board and a second set of Custom Actions
launches the clean-up itself by calling that clean-up file process that
was copied on in the first step. Condition the Custom Actions to run or
not based off of your command line MYFLAG property. I'd think that
should be possible.
-----Original Message-----
Sent: Thursday, September 18, 2008 8:17 AM
Subject: Re: [WiX-users] Running Custom Action Before InstallFiles
First of all thanks to everyone for being so helpful so far, Chad my special
thanks to you.
Chad may be i am asking you for a extra favour if copying a file from
CustomAction is possible can you provide me an example i will be very
thankful to you.
Thanks,
Vivek
Post by Chad Petersen
Then, it sounds to me like you will want to expand you Custom Action
script itself to not only run the clean up, but also copy the file
onto
Post by Chad Petersen
the system you use for the clean up. That should do it. But, no way to
copy one Feature, do some Custom Action and then copy another Feature,
that I'm aware of.
-----Original Message-----
Sent: Wednesday, September 17, 2008 2:40 PM
Subject: Re: [WiX-users] Running Custom Action Before InstallFiles
Thanks Chad, but i am running this msi under too many different scenario's
1) If the user is installing by his own i want to preserve some
registry
Post by Chad Petersen
settings (I do not want this cleanup thing to run in this case.
msiexec /i myapp.msi MYFLAG=1
in this case i want to run the cleanup files, which is giving me all this
pain :-((.
Thanks Again
quote author="Chad Petersen">
I'm not Francis, but have a thought for you.
Why not have your new MSI remove the older InstallShield MSI using the
Upgrade element? It's built in. I always opt for built in features
before using anything custom if it is available. Don't make things
harder than they are.
-----Original Message-----
Sent: Wednesday, September 17, 2008 2:04 PM
Subject: Re: [WiX-users] Running Custom Action Before InstallFiles
Hi Francis,
May be my approach is wrong as i am a newbie with Wix with no prior
experience on Install Shield.
What i am trying to do here is we have some users that are using a msi
(created with Install Shield) and we are replacing this old msi with
the
Post by Chad Petersen
new
one which we are creating with Wix.
So for removing old msi completely from user machine we have created a batch
file that cleans up registry, removes product related files and
folders
Post by Chad Petersen
and
removes service that are installed with the old version of msi
(created
Post by Chad Petersen
with
Install shield).
And before i install my new version i want to execute this script to clean
all files and setting related to prior msi.
Please suggest if there is any better approach to achieve my goal.
Thanks,
Vivek
Post by Francis Kam
I was under the impression that InstallFiles is a single discrete
action
Post by Francis Kam
and
can not be broken down per-file. I don't think what you're trying to
do is
Post by Francis Kam
possible with your current approach. Instead, I would consider
putting
Post by Chad Petersen
Post by Francis Kam
your
CA in the Binary table rather than explicitly installing it on the
file
Post by Francis Kam
system. Although I just realized you're using a batch file... I can't recall
if you can put a batch file in the Binary table (although I imagine
you
Post by Francis Kam
can
put any sort of file in there).
What are you actually trying to accomplish? What exactly does the
batch
Post by Francis Kam
file
do?
-Francis
Post by Vivek
Thanks for your response, but i am having a hard time fitting this
custom
Post by Francis Kam
Post by Vivek
action in between two features.
I checked my Action sequence with Ocra but it doesn't tells me any
thing
Post by Francis Kam
Post by Vivek
about sequence of installing a feature. can you please provide me
some
Post by Francis Kam
Post by Vivek
example.
Thanks,
Vivek
------------------------------------------------------------------------
Post by Chad Petersen
-
Post by Francis Kam
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win
great
Post by Chad Petersen
Post by Francis Kam
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
--
http://n2.nabble.com/Running-Custom-Action-Before-InstallFiles-tp1093699
Post by Chad Petersen
p1096515.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------
Post by Chad Petersen
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------
Post by Chad Petersen
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
--
http://n2.nabble.com/Running-Custom-Action-Before-InstallFiles-tp1093699
Post by Chad Petersen
p1096637.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------
Post by Chad Petersen
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------
-
Post by Chad Petersen
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
--
http://n2.nabble.com/Running-Custom-Action-Before-InstallFiles-tp1093699
p1098454.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
--
View this message in context: http://n2.nabble.com/Running-Custom-Action-Before-InstallFiles-tp1093699p1099195.html
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

Sandeep Gautam (HCL Technologies Ltd)
2008-09-17 23:09:48 UTC
Permalink
Hi,

Can we do install a MSI remotely. Suppose I am running my MSi from Machine "A" but this should be install on Machine B( all binaries etc in Machine B programfile folder).

Can we do this kind of installation.

Regards
Sandeep
Bob Arnson
2008-09-18 04:45:14 UTC
Permalink
Post by Sandeep Gautam (HCL Technologies Ltd)
Can we do install a MSI remotely. Suppose I am running my MSi from Machine "A" but this should be install on Machine B( all binaries etc in Machine B programfile folder).
MSI installs on the local machine. You can use other tools like PsExec
to start installs on another machine.
--
sig://boB
http://joyofsetup.com/
Phil Sayers
2008-09-18 12:11:58 UTC
Permalink
This may get you going in the right direction.

http://www.microsoft.com/technet/scriptcenter/scripts/apps/user/usapvb02.msp
x?mfr=true

to install on a remote machine it's all about how you execute the msi file,
there's not much you can do once the msi has started to be processed by the
installer service.


-----Original Message-----
From: wix-users-***@lists.sourceforge.net
[mailto:wix-users-***@lists.sourceforge.net]On Behalf Of Bob Arnson
Sent: Thursday, September 18, 2008 12:45 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Remote Installtion
Post by Sandeep Gautam (HCL Technologies Ltd)
Can we do install a MSI remotely. Suppose I am running my MSi from Machine
"A" but this should be install on Machine B( all binaries etc in Machine B
programfile folder).
MSI installs on the local machine. You can use other tools like PsExec
to start installs on another machine.

--
sig://boB
http://joyofsetup.com/



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Loading...