how to set launch condition order in visual studio 2008? - c#

I have an WPF and SQL-Server Express based app which I want to deploy using VS-2008 setup and deployment project template. I have added Launch condition for Windows Installer 3.1, Sql Express 2005 and .Net FrameWork 3.5 with SP1 but they are not running in order. I mean:
Windows Installer checking
.Net Framework 3.5 sp1 checking
SQL-Server Express 2005 checking
When i built my project and ran on test machine (with Fresh XP installation only) it tried to install SQL-Server Express 2005 first and then failed for windows installer 3.1.
One more thing i want to know how i can run my DB script after installation of SQL-Server Express 2005.
How I can solve these 2 issues.

I don't think your question actually deals with LaunchConditions as the purpose of LaunchConditions is to prevent the installation of a Windows Installer package if certain conditions aren't met. What you are describing sounds morel ike prereq chaining although I'm not certain what tool you are using to author your install and thus which setup.exe to do the chaining.
I'd also look at putting MSI 4.5 in your chainer, MSI 3.1 is very old in the tooth and only applies to Windows XP these days as all newer OS's come with atleast 4.0.

Related

Publish Portable and Self-Contained .NET Application in Windows 7

I need to release an application that:
must not be installed
must not involve the installation of dependencies for its execution if they are not installed on the PC in use (no versions of C ++, versions of .net Framework, etc ...).
For this purpose I made the application in .NET 5.0 and published it according to the settings visible in the image.
In the settings I specify the Self-Contained property.
Running the application on Windows 11, Windows 10 and Windows 8.1 I have no problems but on Windows 7 I have a .NET Runtime ID 1023 error as in the image.
What could be the problem? How should I publish the application so that I don't need to install anything?
Unfortunately Windows 7 SP1 is supported only with Extended Security Updates installed. The same statement also applies to net6.
I managed to get it to work (with net6) by installing those updates from the Microsoft Update Catalog:
Windows6.1-KB3063858-x64.msu
Windows6.1-KB2999226-x64.msu
Win7AndW2K8R2-KB3191566-x64.zip
this is Windows Management Framework 5.1
Microsoft Visual C++ 2015-2019 Redistributable (x64) - 14.29.30135
In addition, in some installation, I had to also install PowerShell v7.2.1 .
I was unable to run the application on a fresh install of Windows 7 SP1 in any way.

SQL SERVER 2008 R2 install does not end

I have a C# application with a Visual Studio Installer. This application needs to use SQL Server 2008 R2 Express.
I created a bootstrapper package following this guide.
I have set this package as prerequisite in the Setup properties and generated the setup package.
When I start the Setup a dialog box ask for license agreement
Then the file is downloaded
And the install is performed
But this install never end on my Windows 7 (on Windows 10 all is OK). When the progress bar is complete, the loading restart. I have to restart the computer and relaunch the setup. The second time, SQL server is considered to be installed and the setup perform the next step (installing CLR types 2014)
How can do to unblock the setup ? Maybe asking user for reboot but I don't know how.
Thank you
Edit: I changed the package (from SQL SERVER 2008 + .NET Framework 4.0 to SQL SERVER 2008 + .NET Framework 4.0 Client) and now the SQL install is OK but now this is the .NET Framework 4.0 Client who never end.
Can someone help me ?

Lightswitch 2012 and Windows XP

i finally finished a proyect i was requested in my university with Lightswitch. Im ready to deploy (publish) next week, and i was JUST told that the people that will recieve the software, are using XP machines. I've read a lot of questions and lots of fixes, to get Lightswitch working on Windows XP, like:
Changing the DumpBin with "editbin vslshost.exe /SUBSYSTEM:WINDOWS,5.01 /OSVERSION:5.1"
deploy it as a desktop application with the services deployed to IIS (i dont think this will work because those are really old pc's)
install all the prerequisites manually and launch the ClickOnce application directly from deployment manifest file (.application)
create a sample ClickOnce application using Visual Studio 2010 OR Visual Studio 2008 with the same name as mentioned in Visual Studio 2012 and publish it. From the published location take the setup.exe bootstrapper and replace the existing setup.exe bootstrapper created using Visual Studio 2012
With all of this workarounds available, i NEED to ask, will this ultimately work? Can someone REALLY tell me that using one-or-all of this workarounds i WILL be able to deploy the application!?
Someone?
The 2-Tier Deployment issue on XP was also addressed in VS 2012 Update 2 IF you upgrade to a "V3" LightSwitch project by right-clicking on the root project in Solution Explorer and selecting "Upgrade Project". This updates the project to the "V3" project system, runtime and will use a much newer publish wizard. The version of VSLSHOST.exe that ships with VS 2012 Update 2 is compatible with XP.
Dave Kidder - LightSwitch team
http://social.msdn.microsoft.com/profile/dave%20kidder/
I have a successfully deployed application using the 3-tiers running as an out-of-browser (desktop app) on XP. Initially I was going to do the 2-tier deployment, but I was unable to get a workaround to work.
So I have one server, which runs IIS as well as my SQL server (OS is Windows Server 2003, but doesn't have to be.)
The client machines range from Windows XP to Windows 7, and I haven't had any special problems with windows XP.
So I can definitely say XP will work as a client. I was unable to get it to run the middle tier (hence IIS on the server) but I didn't try every last idea I found, so I won't say it's impossible.
The two links I found most helpful in the process were
http://blogs.msdn.com/b/bethmassi/archive/2011/03/23/deployment-guide-how-to-configure-a-web-server-to-host-lightswitch-applications.aspx
and
http://blogs.msdn.com/b/bethmassi/archive/2012/03/29/lightswitch-iis-deployment-enhancements-in-visual-studio-11.aspx
Hope that helps.

How to create an update patch for windows application

How do I create an update patch that updates the application without having to reinstall the application in newer version?
Also, how could I combine other software such as SQL express and printer driver with the application setup file?
I have used Visual Studio 2010 to develop my application.
What you can patch depends up how you partitioned it in the first place. Did you design it to be patched? If not the best case may be bite the bullet and reinstall a newer version.

How to Deploy a C#.net project in Visual studio 2010 (ultimate)?

solution is developed for x86 platform and framework 3.5...
i need to include pre-request setups in my offline project ...dot net frame work 3.5 , sql server compact server sp 2,windows installer 3.1 are the pre-request that the setup should check for and install if not installed in target machine...how to create setup with pre-request setups ?
Builded successfully...when i select pre-request without framework 3.5...... error occours only when i select framework 3.5
You can make use of the Launch conditions editor for specifying prerequisites on client machine. And you can package the rest and deploy it using one of two approaches: ClickOnce or Windows Installer. More on this here:
http://msdn.microsoft.com/en-us/library/e2444w33.aspx

Categories