473,327 Members | 2,012 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Custom Deployment

Is it possible through an install to run a script to disable a service and then install the files in VB.NET?

I've tried using an installer class with the custom actions and that is not working. The files are installing first and then the custom action runs. I've used message boxes in the code, instead of a script, to see when the files are actually getting written vs the script running.

Expand|Select|Wrap|Line Numbers
  1. Public Class TestInstaller
  2.  
  3.     Public Sub New()
  4.         MyBase.New()
  5.         MsgBox("Script here: Public New before Initialize comp")
  6.         'This call is required by the Component Designer.
  7.         InitializeComponent()
  8.         MsgBox("Script here: Public New after Initialize comp")
  9.  
  10.  
  11.  
  12.     End Sub
  13.     Public Overrides Sub Install(ByVal savedState As IDictionary)
  14.         MsgBox("Script would run here: Install before")
  15.         MyBase.Install(savedState)
  16.         MsgBox("Script would run here: Install after")
  17.     End Sub
  18.     Public Overrides Sub Commit(ByVal savedState As IDictionary)
  19.         MsgBox("Script would run here: Commit before")
  20.         MyBase.Commit(savedState)
  21.         MsgBox("Script would run here:  Commit after")
  22.     End Sub 'Commit
  23.  
  24.  
  25. End Class
  26.  
Any help on getting a script to run then the install of the files would be great. The installation has to be done without human intervention.
Oct 4 '07 #1
0 912

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: T | last post by:
I have a web site i want to deploy using a VS.NEt set up project. I have no problems with that, that is fine and works no problem. But the web application uses a custom event log to log...
0
by: Greg Shaw | last post by:
I have a Deployment project with a version number (It's a project property the same as DetectNewerInstalledVersion). I also have a Custom Action. I want to save the Version number of the project...
0
by: Gary Townsend | last post by:
I am deploying my software however there are 2 Solutions which are being deployed one is the auto updater for my program and the other is the program itself. So there are 2 deployment packages. I...
0
by: Kemin | last post by:
Recently I built an ASP.NET application Installation program for deployment. The ASP.NET app use a Sql Server db, I package it into the installation file too. The general step of building an...
1
by: Gene | last post by:
I would like to know if the following is even possible with the visual studio.net Setup and Deployment project. 1. During the deployment after creation of application directory the setup needs...
0
by: Ashwin | last post by:
Hi, I am trying to build a Set Up and Deployment Project for my Application using Visual Studio 2005 Set up and Deployment Project. I need to install two custom applications installable as the...
13
by: Matt F | last post by:
I have a deployment project that I'm setting up. I need to perform a different custom action based on whether this is a first time install or an update. Does anyone have any idea if it's possible...
0
by: David Jackson | last post by:
Hello, I'm not sure if this is precisely the correct newsgroup for this, so I apologize if it isn't.. Scenario: a WinForms app written in VS.NET 2005 (C#) and installed via a Setup and...
0
by: mohaaron | last post by:
I recently added a web deployment project to my vs.net 2005 solution to deploy a assocated web site project. When I originally added the web deployment project to the solution I had one other class...
3
by: KennethLundin | last post by:
Hi, i'm developing a solution in VS9/CSharp. Now I'm constructing a deployment project for my appliation (thick, database driven, winforms, standard, good old type of application). During...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.