473,796 Members | 2,462 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Installer Question

Hi guys,

I've got a quick question about installers in .NET. Any advice would be
gratefully received!

I'm writing a .NET Windows application that needs an installer. I'd
really like the set up files to comprise of a SetUp.exe file, an MSI
and a CAB file containing all the files (exes, dlls, etc...) for my
application. Then, when the SetUp (or MSI) is launched, the installer
unpacks what is in the CAB file and deploys it to the install location.

One reason I want to do this is that I want my application to be able
to manually access the CAB file, unpack it, and use the files
elsewhere. Historically, I used to do this by putting an installer and
a separate zip file containing my application files on my release
disks. Then, the installer would take care of itself, and the zip file
was always available to the code when it was needed. (I have libraries
to unpack zip files, so there were no format barriers either!) The draw
back of this is that files are duplicated on the disk.

I thought this would be easy to achieve, but this is not the case! If I
build a CAB file using the set up wizard, the files within the CAB file
are not the proper application files; they all have weird names, like
"_9B36C0E000CC3 9B66CCCE9015834 0CB7". If I build a separate CAB file
using the Cab Project, the files within the CAB file are as expected,
but when I include the CAB file in an installer, the CAB file is just
placed in the output directory as a CAB file, and not unpacked!

Am I missing something here? Is it possible to do what I want to do?

Many thanks,

Steve.

Jan 3 '07 #1
0 950

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
14467
by: krisk | last post by:
Could not find ansewr: in ProjectInstaller, RunInstallerAttribute: ..... this.serviceInstaller1.ServiceName = MyServiceName; in the code: public class MyService : System.ServiceProcess.ServiceBase { string MyServiceName = "configSendmailA";
7
3688
by: sidd | last post by:
Hi All, i have some doubts on .net windows services.. please see if some one could help me understand this.. 1)is it possible to install a windows service which does not have a installer added to it, using installutil.exe OR is it must to have an installer to the service project to be able to
1
2104
by: HyperX | last post by:
Hey guys, How can I see the code of the installer class? I know that I have to right click on my object class, -> Add Item -> Code -> installer class... The actual question is, I cannot see "Code" in my "Add Item" Menu. In order to see this 'Add Installer code'... Do I need to install any plugin?
2
5367
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 works. Now, I am wondering if there is any way to change the directory that the installer installs the files to. I want to be able to put my files in a specified directory (user specified is good, but i don't mind hardcoding the path either) and...
3
1893
by: Brian Henry | last post by:
This has worked perfectly for the past year now all the sudden it will not compile the installer project correctly. All our source code is in a Source Safe database so every system we do this on should be identicle. On one system the installer project will compile correctly, but on two others it will fail with this error. ------ Rebuild All started: Project: Installer, Configuration: Debug ------ Building file 'T:\Current Builds...
1
1599
by: Henry Stock | last post by:
I am not really sure what news group this should be posted to. It has to do with a visual studio install project for a c# application. We have noticed that if any of the files installed by the installer are moved or deleted that this automatically triggers the installer the next time the application is started. While this would appropriate if the file in question were an executable, the files are actually report files. Clients want to...
1
1420
by: Eric Fleet | last post by:
This may qualify as a stupid question -- or as Chris Berman said, "There are no stupid questions. Only stupid people who ask questions. I finally have my windows installer where I want it. It loads the dotnet framework semi-silently, installs the main installer along with an automatic upgrade feature Then, I hit one more snag. Some of the install computers do not have the latest version of windows installer. My question: Is there a neat...
4
6436
by: Shiraz | last post by:
Hi I'm using Visual Studio Installer to make my installer, and have not as yet figured out a straightforward way to use it to set environmental variables. Amongst the various things I tried, I'm thinking the following might help. I would appreciate if someone could comment on this idea and possibly suggest a better one: The environement variable in question is 'Path' in the HKCU registry folder's Environment key. I want to add some...
3
1847
by: mistral | last post by:
Not sure is this correct place for my question (i am not a programmer): I have some sofware packed into installer, file version: 2.11.15.0, in file properties shown "SFX CAB archive", name "stub32i.exe". I can extract files from this archive with WinZip without launching application. I have an big application that consist from various setup files extracted from similar installer archive. For more convenience, I want pack it into...
0
9683
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9529
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10457
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10013
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9054
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6792
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5443
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4119
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2927
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.