MikMik
MikMik

Reputation: 3466

PostBuildEvent in WindowsInstaller project returns error code '1'

I have a Windows Installer (VS 2008) project and I want to create a very simple post build event, which just opens the target folder, with the installer selected.

So I've typed the following in the PostBuildEvent field:

explorer.exe /select, $(BuiltOuputPath)

The problem is I get the following error:

ERROR: Error de 'PostBuildEvent' con el código de error '1' 'Error no especificado'

Which translates as something like:

ERROR: 'PostBuildEvent' error with error code '1' 'Unspecified error'

The thing is, the folder opens, with the installer selected and all, but it keeps giving me error.

So, am I doing something wrong?

Upvotes: 2

Views: 3710

Answers (2)

Hassanation
Hassanation

Reputation: 886

Simply change "BuiltOuputPath" to the exact path of your setup project output for example:

"$(E:\INFO BANK\Info Bank Project\Setup2\Debug)"

i am sure the error will disappear .. good luck

Upvotes: 1

MikMik
MikMik

Reputation: 3466

It works fine with "start":

start explorer.exe /select, $(BuiltOuputPath)

Upvotes: 4

Related Questions