Feature Requests item #1565305, was opened at 2006-09-25 19:02
Message generated for change (Comment added) made by dr_dimaka
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: Open
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: Dmitry Pavlov (dr_dimaka)
Date: 2007-02-13 22: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 20: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

Reply via email to