Feature Requests item #1565305, was opened at 2006-09-25 12:02
Message generated for change (Comment added) made by justinrockwood
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=642717&aid=1565305&group_id=105970
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: votive
Group: None
>Status: Pending
Priority: 5
Private: No
Submitted By: Dmitry Pavlov (dr_dimaka)
Assigned to: Justin Rockwood (justinrockwood)
Summary: Pre- and Post-build events
Initial Comment:
just one thing I realy need is to run some command
line stuff before and after WIX project Build. So,
that would be really great to see in next Votive build
something like Pre- and Post-build events in C#
projects into Votive!
----------------------------------------------------------------------
>Comment By: Justin Rockwood (justinrockwood)
Date: 2007-02-17 03:38
Message:
Logged In: YES
user_id=1054914
Originator: NO
* Added a bunch of extensibility points in wix.targets so that users can
hook into different events during the build and perform custom actions.
Here's the list of targets you can define in your .wixproj file to hook
into the flow of events (in the order in which the events will happen):
1 BeforeRebuild
2 BeforeClean
3 AfterClean
4 BeforeBuild
5 PreBuildEvent (this isn't a target, but rather a property
that
contains a command line to run)
6 BeforeResolveReferences
7 AfterResolveReferences
8 BeforeCompileAndLink
9 AfterCompileAndLink
10 PostBuildEvent (like PreBuildEvent)
11 AfterBuild
12 AfterRebuild
* Added a $(RunPostBuildEvent) property, which can have 4 values:
- OnBuildSuccess: In this case, every step of the build must
succeed
for the post-build step to run.
- <Blank>: This is the same as OnBuildSuccess.
- OnOutputUpdated: In this case, the post-build step will run
only
if the main output was actually updated.
- Always: The post-build step is always run
----------------------------------------------------------------------
Comment By: Justin Rockwood (justinrockwood)
Date: 2007-02-17 02:29
Message:
Logged In: YES
user_id=1054914
Originator: NO
I'm doing this in two steps: 1) add the support to wix.targets so that you
can manually tweak your .wixproj file and add the following:
<PropertyGroup>
<PreBuildEvent>command line</PreBuildEvent>
<PostBuildEvent>command line</PostBuildEvent>
</PropertyGroup>
This feature request tracks the first item.
2) Surface this feature in a property page in Votive. Feature Request
#1662195
(http://sourceforge.net/tracker/index.php?func=detail&aid=1662195&group_id=105970&atid=642717)
tracks the second item.
----------------------------------------------------------------------
Comment By: Dmitry Pavlov (dr_dimaka)
Date: 2007-02-13 14:11
Message:
Logged In: YES
user_id=1606393
Originator: YES
------ FOR VOTIVE USERS -------
I can give you an advice how to hack it until the normal implementation.
I have added following code into my .wixproj file :
<!--
PrepareForBuild target overrides PrepareForBuild WIX target with
addition
the command execution in PreBuild time. This is temporal solution while
usual
Pre- and Post-Build Events woun't be implemented in next WiX version.
-->
<Target Name="PreBuildEvent">
<Exec Command="PreBuildEvent.bat" />
</Target>
<Target Name="PostBuildEvent">
<Exec Command="PostBuildEvent.bat" />
</Target>
<PropertyGroup>
<BuildDependsOn>PreBuildEvent;PrepareForBuild;Compile;Link;Lib;PostBuildEvent;</BuildDependsOn>
</PropertyGroup>
and added 2 batch files into a project. It works.
------- FOR VOTIVE DEVELOPERS -------
Tip for WiX project developers: I'm working on VSIP package for custom
language and it's very simple to add addintional PropertyPage with UI for
Pre- and Post-Build event. Then add something like that into your project
template:
<PropertyGroup>
<PreBuildEvent></PreBuildEvent>
<PostBuildEvent></PostBuildEvent>
<RunPostBuildEvent>Always</RunPostBuildEvent>
</PropertyGroup>
and then something like that into your targets file:
<PropertyGroup>
<BuildDependsOn>PreBuildEvent;Compile;PostBuildEvent</BuildDependsOn>
</PropertyGroup>
<Target Name="Build" DependsOnTargets="$(BuildDependsOn)">
<Message Text="Build" />
</Target>
<Target Name="PreBuildEvent">
<Exec Command="$(PreBuildEvent)" Condition=" '$(PreBuildEvent)'
!= ''
"/>
</Target>
<Target Name="PostBuildEvent">
<Exec Command="$(PostBuildEvent)" Condition="
'$(PostBuildEvent)' != ''
"/>
</Target>
If it's not clear enoungh just drop me a letter - I'll try to help you.
----------------------------------------------------------------------
Comment By: mattyj (mattyj2001)
Date: 2007-02-13 12:44
Message:
Logged In: YES
user_id=1477397
Originator: NO
I would like to 'vote' for this one, too. Currently I am using makefile
projects to build Wix installers. It would be nice to use Votive but have
the ability to run (especially) pre-build commandline commands like with a
makefile.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=642717&aid=1565305&group_id=105970
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs