Error 1001 using custom installer with Visual Studio 2008

前端 未结 2 2015
有刺的猬
有刺的猬 2021-01-05 09:31

I\'ve created a simple winforms app and a custom installer. It all seems simple enough but I get the following popup and error details in the event log.

2条回答
  •  逝去的感伤
    2021-01-05 09:42

    After many hours going around in circles I have finally found the problem and more importantly, the solution.

    It should be possible to pass the parameters as "CustomActionData" as defined on this blog but the parameters are a little querky to say the least...

    I found that the text parameters can't have quotes around the parameter name and should be formatted like this:

    /Param1=[CONFIG_TESTFILE] /Param2=[CONFIG_TESTFOLDER]

    In addition, to use the target directory parameter you need to include the quotes but instead of ending the field with a back slash, you must use a space instead, like this:

    /target="[TARGETDIR] "

提交回复
热议问题