### post build event - How to run a deployed .exe file with administrator privileges?

I'm creating a Deployment Project in which I will deploy an executable - call it abc.exe and after the software is installed on the Target machine I need to run [INSTALLDIR]abc.exe /install with administrator privilegesAs you may have guessed, I'm coming from a VS2012 environment where we used to have the option to create an InstallShield LE project to add such "custom actions" but in VS2017 we need to move on to a "Deployment Project" to create the .msi. And while I think I've correctly worked out that I need to look at the "Deployment Project...Read more

### VS2010: Can we have multiple if in post-build event?

Can we have something like this:if "Debug"=="$(ConfigurationName)"( goto :nocopy)else if "Release"=="$(ConfigurationName)"( del "$(TargetPath).config" copy "$(ProjectDir)\App.Release.config" "$(TargetPath).config")else if "ReleaseBeta"=="$(ConfigurationName)"( del "$(TargetPath).config" copy "$(ProjectDir)\App.ReleaseBeta.config" "$(TargetPath).config")else if "ReleaseProduction"=="$(ConfigurationName)"( del "$(TargetPath).config" copy "$(ProjectDir)\App.ReleaseProduction.config" "\$(TargetPath).config") :nocopyI've tried it but it doe...Read more

### Post build event command whose directory is not C:\

I want to run a command in the post build event of a project, if i do C:\temp\Client.exe it works fine but If my project is in the thumb drive and change the command to G:\temp\Client.exe it looks like it doesnt like the path and exit with code 9009. what command do i need if the exe is in different path than C drive. Thankx...Read more

### How do I add post-build events to InstallShield Limited Edition

After I build my InstallShield I want to copy the outputted MSI file to some partocilar directory..."\Documents\Visual Studio 2012\Projects\UpdateAppTest\Setup1\Setup1\Express\SingleImage\DiskImages\DISK1\setup1.msi"to some directory on my computer...Read more

### .sbr - "Post build event error"

I am using Visual Studio 2008 to build my projects.I often take existing sample code and edit it and toy around with it, as I am just learning and I'd like to advance my skill.. it's nice to have a template to work with.That being said, I often get the build error "Post build event failed". This is often accompanied by a "could not find xxx.sbr file" or something. I do not know what an sbr file is, not a "post-build event". Re-building doesn't seem to help, and clearing all the files out before tying another build does not help either.That bein...Read more

### Post build event command whose directory is not C:\

I want to run a command in the post build event of a project, if i do C:\temp\Client.exe it works fine but If my project is in the thumb drive and change the command to G:\temp\Client.exe it looks like it doesnt like the path and exit with code 9009. what command do i need if the exe is in different path than C drive. Thankx...Read more