Unable to run script within Visual Studio setup package - visual-studio

I have created a setup within Visual Studio, which require to run some .vbs script while installer package getting install.
Have added script in "custom Actions" but getting error while setup running.
"There is a problem with this Windows Installer Package. A script required for this install to complete could not be run. Contact your support personnel or package vendor."
have tried to adding from "custom actions">install

Related

How to build Visual Studio Installer Project in Azure Devops Pipeline Hosted Agent

I have a Visual Studio setup project. Normally I use the Microsoft Visual Studio Installer Projects extension, and run an MSBuild Exec task with command line using devenv. This works on my dev box and my existing build machine. However I'm looking to migrate to a hosted pipeline agent using the VS2017 image.
I was hoping the installer extension might already be installed, so I tried my build and got an error:
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\devenv.com" "D:\a\2\s\Source\Build..\WindowsFormsApp1\WindowsFormsApp1.sln" /Build "Debug" /Project "Setup1" /ProjectConfig "Debug" /Log
The operation could not be completed. The parameter is incorrect.
I tried adding the VSIX to my repo, and then issuing a command line install of the VSIX as such:
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VSIXInstaller.exe" /a /quiet /log:MyTestApp.log D:\a\2\s\Source\Build\InstallerProjects.vsix
However that seems to block for about 10 minutes, and then fails with an error (I suspect the UI is blocking even though I used the /quiet arg to suppress the UI):
... exited with code -2146233088.
Is there any way to build a Visual Studio installer project using a MS-hosted pipeline agent?
How to build Visual Studio Installer Project in Azure Devops Pipeline Hosted Agent
AFAIK, I am afraid we could not build Visual Studio Installer Project in Azure Devops Pipeline Hosted Agent at this moment.
I encountered a similar issue two weeks ago, after a period of investigation, I started to try the same idea as you, using command line to install the Microsoft Visual Studio Installer Projects extension.
However, I got the timeout issue. I could not install that extension on the hosted agent. To test the reason for this, I use the same command lien to installed that extension on another local machine. Indeed, there is a UI window to confirm if you want to install this extension, even after I give the /admin parameter:
Check the options here.
Then I try to open the command line with Administrator and execute the same command line, it can successfully install that extension. So, I want to execute the command line in the Azure DevOps pipeline. But no success. Because we could not execute command line script as admin using Command Line Script task.
It seems we have to set our private agent.
Hope this helps.

error of TFS2015 installation:'Error 0x80073e84: Failed to execute EXE package'

while installing TFS2015 in WS2016, the error that 'Starting Team Foundation Server configuration wizard Package failed' came. How can i deal this situation?
if i ignore it and continue configuration wizard, finally, project collection failed to configure.enter image description here
log:
[1ECC:2290][2018-06-18T15:31:11]e000: Error 0x80073e84: Process returned error: 0x3e84
[1ECC:2290][2018-06-18T15:31:11]e000: Error 0x80073e84: Failed to execute EXE package.
[2260:1A8C][2018-06-18T15:31:11]e000: Error 0x80073e84: Failed to configure per-machine EXE package.
Just try below things to narrow down the issue:
Disable anti-virus or anti-spyware software.
Check windows update, install the latest patches.
Clear %TEMP% folder.
Run the installer as administrator.
Uninstall the MS Visual C++ 2010 x86 Redistributable (from add/remove
programs) and then reinstall TFS.

How can I get Crystal Reports for VS2010 to install?

Every time I try to install (5 attempts) I get:
Error 2753. the File "agent.exe.6ED28686_7b19_420c_b255_5b6c1bd2c705" is not marked for installation
I've tried uninstalling, deleting the install folder after installing, clearing out temp files, restarting the machine and making sure I run the setup as administrator but I get this every time. I've even followed some advice about putting the installer files in c:\cr4vs2010 but to no avail.
The customer I'm developing for has Crystal skills so no other reporting engine will do.
EDIT
Found out about the FLEXnet transformer that fixes the above error. However, on completion of the install I get an error "The operation could not be completed" in a dialog box headed "Visual Studio".
I've fixed it I think. I now have Crystal Templates.
To fix.
Get the Flexera tool at
http://kb.flexerasoftware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&externalId=Q207355&sliceId=
Run the tool as instructed and install the two msi's using it. I did the VS install first, then the 64-bit runtime.
After getting the "The operation could not be completed" error and installing both msi's, open up the Visual Studio Command prompt, ensuring you elect to Run as Administrator.
execute the command line devenv /installvstemplates. This takes a few minutes.
That fixed it for me.

Error on sharepoint server 2010 configuration

I need to install sharepoint server 2010 on my developer pc with 64bit windows 7 OS. I followed microsoft instructions on http://msdn.microsoft.com/en-us/library/ee554869.aspx
Let me describe you on this. I copied all the files from the CD to my D: drive. Changed the config at D:\SharePoint Server 2010\Files\Setup and added the tag ''. Installed the prerequisites manually. Made specified changes to windows features, and run the setup.exe file. Selected 'Standalone' as installation type. The installation completed successfully.
While running configuration wizard, I got the message 'Configuration failed' saying 'Failed to create the configuration database'.
I had this happen to me when installed my local development for SharePoint. This link might be able to help. http://myspexp.com/2010/05/31/configuration-failed-when-installing-sp-2010-on-windows-7-failed-big-time-3
While running configuration wizard, I got the message 'Configuration failed' saying 'Failed to create the configuration database'.
Please follow
http://www.microsoft.com/downloads/details.aspx?FamilyID=eb9c345f-e830-40b8-a5fe-ae7a864c4d76&displaylang=en#filelist
Install Windows update, installation will work Fine
To install sharepoint on windows 7
Please follow
http://msdn.microsoft.com/en-us/library/ee554869(office.14)

Visual Studio Setup Project: Install Service Executable Marked as Hidden, System

I'm using a Visual Studio 2010 'Setup Project' to install my C# Windows Service application.
I want to mark the installed service executable as hidden and system in the file properties, like so:
I've added custom actions to install the service as per this article, but when I run the created MSI installer file, I get the following error message during installation:
Error 1001. Exception occurred while initializing the installation: System.IO.FileNotFoundException: Could not load file or assembly 'file:///C:\path\to\my\service.exe' or one of its dependencies. The system cannot find the file specified.
I checked the install location and the service executable was there marked as hidden and system, so I can only assume that the service installation is failing because of those attributes.
How can I make the installer install the service executable, mark it as hidden and system, and install the Windows Service successfully?
Surely this wouldn't be impossible if Visual Studio allows you to set files in the project as hidden and system?

Resources