2

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?

ThinkingStiff
  • 64,767
  • 30
  • 146
  • 239
MikMik
  • 3,426
  • 2
  • 23
  • 41
  • does it happens only from a post build event? What about if you run the command line yourself? – Steve B Jul 03 '12 at 00:30
  • If I run the command line myself, I get the same error. So if I do `explorer.exe /select, (path)` then `echo %errorlevel%` I get '1'. But I've just found that if I do `start explorer.exe /select, (path)`it works fine (from the command line, I'll try the PostBuildEvent later) – MikMik Jul 03 '12 at 05:58

2 Answers2

4

It works fine with "start":

start explorer.exe /select, $(BuiltOuputPath)

MikMik
  • 3,426
  • 2
  • 23
  • 41
1

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

Hassanation
  • 866
  • 2
  • 14
  • 29