473,385 Members | 1,707 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,385 software developers and data experts.

Installer Class VB.NET

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.


Code: ( text )
Public Class TestInstaller

Public Sub New()
MyBase.New()
MsgBox("Script here: Public New before Initialize comp")
'This call is required by the Component Designer.
InitializeComponent()
MsgBox("Script here: Public New after Initialize comp")



End Sub
Public Overrides Sub Install(ByVal savedState As IDictionary)
MsgBox("Script would run here: Install before")
MyBase.Install(savedState)
MsgBox("Script would run here: Install after")
End Sub
Public Overrides Sub Commit(ByVal savedState As IDictionary)
MsgBox("Script would run here: Commit before")
MyBase.Commit(savedState)
MsgBox("Script would run here: Commit after")
End Sub 'Commit


End Class


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 5 '07 #1
0 1037

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

Similar topics

5
by: krisk | last post by:
Could not find ansewr: in ProjectInstaller, RunInstallerAttribute: ..... this.serviceInstaller1.ServiceName = MyServiceName; in the code: public class MyService :...
0
by: Arun Bhalla | last post by:
I'm having some inconsistency problems with my deployment project ("Setup") and its custom actions ("Installer"). I'm using Visual Studio .NET 2003 (.NET 1.1, no service pack) on Windows XPSP1. ...
2
by: MENTAT | last post by:
Hi, I am trying to create an installer for my web application. So I added a web setup project to my solution (I am using VS.NET 2003). Been playing around with it since then and it basically...
0
by: Richard | last post by:
All, There is a KB article pertaining to windows installer running every time an application starts - so I know it's an issue - but the KB article pertains to MS Office only. I am seeing the...
0
by: CJ Taylor | last post by:
Hey has anyone played with custom actions and the installer class? I've followed instructions from a couple articles on MSDN on how to build a custom install class, thought I did everything...
3
by: Mark Assousa | last post by:
Hi, I'm having trouble finding the right news group for this posting so here goes... I am attempting to execute some special actions within an installation project for a standard .Net Windows...
8
by: jacky kwok | last post by:
Dear All: In VS2005 WebSetup installer InstallAddress dialog, there is field to let user to select which website to install the webapp (if there are more than one WebSite in the IIS). I want...
4
by: Rob R. Ainscough | last post by:
The task is brain dead simple - Uninstall prior Windows Service and Install newer version of Windows Service Background: 1. My Windows Service written in .NET 1.1 and deployed via MSI (Windows...
2
by: ashishjainism | last post by:
I am unable to install my windows service and the installutil is throwing the following error: Running a transacted installation. Beginning the Install phase of the installation. See the...
0
by: JDeats | last post by:
I have a new Installer class (derived from System.Configuration.Install.Installer) and I have override methods for Install, Uninstall, Commit. The MSI builder tool I'm using is Advanced Installer,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

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.