|
I have been using the followingpostbuild event successfully in Visual Studio 2008 Setup Projects to disable Advertised Shortcuts:
With the file WiRunSQL.vbs copied to the Setup path, the PostBuildEvent reads: cscript //nologo "$(ProjectDir)WiRunSql.vbs" "$(BuiltOuputPath)" "INSERT INTO Property(Property, Value) VALUES ('DISABLEADVTSHORTCUTS', '1')"
We have now upgraded from XP to VISTA workstations and this now produces the following error when I build the application: Error1'PostBuildEvent' failed with error code '1' 'Unspecified error'
Can anyone tell me what I need to do to fix this please. - Changed TypeKira QianMSFT, ModeratorWednesday, July 08, 2009 6:21 AM
- Changed TypePhil Dodd Monday, July 13, 2009 8:04 AMSolution Found
-
| | Phil Dodd Thursday, July 02, 2009 1:29 PM | Sorry for the late reply. I have managed to find the problem. The organisation I work for enforcesvery strict IT security settings. So strict that it often impedes our work - even with my administrator account. That was the case here. I eventually set Microsoft Visual Studio 2008 to run as an administrator and the post build event then ran OK. Unfortunately, I now cannot run my Visual Basic solutions by double clicking on the solution file. I have to start Microsoft Visual Studio 2008, enter my Admin accout details (even when I am already logged in as an with that account) then I can load my solution files and the Postbuild even will complete OK. - Marked As Answer byKira QianMSFT, ModeratorMonday, July 13, 2009 8:38 AM
-
| | Phil Dodd Monday, July 13, 2009 8:03 AM | If it works on XP and not Vista this seems more likely to be an effect ofUAC, not an issue with setup projects. What error do you get if you run the script by itself? Phil Wilson | | PhilWilson Thursday, July 02, 2009 10:30 PM | We are changing the issue type to “General Discussion�because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question�by opening the Options list at the top of the post editor window, and changing the type. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions. Please mark the replies as answers if they help and unmark if they don't. | | Kira Qian Wednesday, July 08, 2009 6:21 AM | Sorry for the late reply. I have managed to find the problem. The organisation I work for enforcesvery strict IT security settings. So strict that it often impedes our work - even with my administrator account. That was the case here. I eventually set Microsoft Visual Studio 2008 to run as an administrator and the post build event then ran OK. Unfortunately, I now cannot run my Visual Basic solutions by double clicking on the solution file. I have to start Microsoft Visual Studio 2008, enter my Admin accout details (even when I am already logged in as an with that account) then I can load my solution files and the Postbuild even will complete OK. - Marked As Answer byKira QianMSFT, ModeratorMonday, July 13, 2009 8:38 AM
-
| | Phil Dodd Monday, July 13, 2009 8:03 AM | Hi Phil Dodd, Yes you are right, we need to run VS first then load solution. Double click the solution file can only run it under current user account. But once you have load that solution, it will be remembered and the next time, the solution will appear on the start page. That make it convenience to let you load it. Sincerely, Kira Qian Please mark the replies as answers if they help and unmark if they don't. | | Kira Qian Monday, July 13, 2009 8:38 AM |
|