Re: Customising Setup Projects

Tech-Archive recommends: Speed Up your PC by fixing your registry



Hi Phil,

Thank you for posting. And thanks for Pavel's answer. I totally agree with
him that post build event is suitable to your requirement. Other than that,
I have something to complement:

For how to customize your post build event, here is the instruction:
http://msdn.microsoft.com/en-us/library/ke5z92ks.aspx
It also contains an example, I think you can follow it easily to build your
custom tool.

For troubleshooting the error in the post build event, please check the
guideline: http://msdn.microsoft.com/en-us/library/b0bktkzs.aspx
Although it is Visual C++ guideline, it has many common solutions to help
you to troubleshoot. For example:
" Add @echo on as the first command to see what your custom
build step is actually doing. The build events and build steps are placed
in a temporary .bat file and run when the project is built, so, you can add
error checking to your build event or build step commands.
" Run custom build steps and build events individually to
check their behavior.

One thing I want to mention that VS puts these commands in a batch file and
runs it. VS checks for build failures so it can tell you about them.
However - it only checks for a failure of the batch file that it created -
not for any failures within the batch file.
The solution for this limitation you can find it here:
http://geekswithblogs.net/dchestnutt/archive/2006/05/30/80113.aspx
Check for error after every meaningful step and add code at the end to
handle the error so VS will report it.

Hope it helps. Please let me know if you have any other concerns, or need
anything else.

Regards,
Hongye Sun (hongyes@xxxxxxxxxxxxxxxxxxxx, remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://support.microsoft.com/select/default.aspx?target=assistance&ln=en-us.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

.



Relevant Pages

  • RE: How do I maintain seperate vc++ include file directories /proj
    ... Visual Studio supports to customize additional include and lib file search ... Microsoft Online Community Support ... nature are best handled working with a dedicated Microsoft Support Engineer ...
    (microsoft.public.vsnet.ide)
  • Re: Customizing a ComboBox
    ... so Combobox.Items property is not where you want to customize the ... private MyObjectCollection myitemsCollection = null; ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: How do I maintain seperate vc++ include file directories /project
    ... Visual Studio supports to customize additional include and lib file search ... Microsoft Online Community Support ... nature are best handled working with a dedicated Microsoft Support Engineer ...
    (microsoft.public.vsnet.ide)
  • RE: Setting Inner Tag Content at Design Time programmatically
    ... but allow the user to easily customize the interface should he/she ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet.buildingcontrols)
  • RE: create folder with package wizard
    ... recommended to modify the Setup.ini file to chain the install. ... Packaging Wizard creates and then it kicks off the batch file which will ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.access.modulesdaovba)