473,385 Members | 1,267 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.

Install a program while installing the "real" program

6
Hi,
I've got a problem! Or two actually at this moment...

I want to:


- When I'm installing my program (coded in C#, installed on computer by windows installer), we can call it for "Program A", I want another program (a .exe file), "Program B", to install simultaneously without users knowledge.


If I put "Registers" value to "csdrfCOMSelfReg" for the .exe file in "Properties" I will get the possibility to click through an installer guide for Program B while my program A is installing.
And I want Program B to install, but without the guide because I don't want user to know about it and that the user doesn't need to do anything for it.

- Later when user uninstall "Program A", I would like "program B" to uninstall too, without effort by user of course...

Is this possible to do through the cmd? I really have no idea what to do... I've tried to google, but haven't find any solution. Maybe someone out there can put me on the right track? I think that "-k" could help me, but I don't know how, yet...
Oct 7 '08 #1
10 1741
Plater
7,872 Expert 4TB
I think you can do that in an installer package project. Dependancies or something. I've never done it though
Oct 7 '08 #2
pstve
6
I think you can do that in an installer package project. Dependancies or something. I've never done it though

I thougt that too! But I haven't found anything there that could have helped me. I'll get the "Program B" to install when installing "Program A" there, but then user has to go through the installation guide. I want the "Program B" to install by itself...

Thanks for your answear anyway!!
Oct 8 '08 #3
pstve
6
OK! I've found half the solution.

In "Custom actions" it is just to "Add Custom Action" under "Installation", and in properties window insert /S to Arguments. And TADAA! Program B is installed without user will notice.

Then it is just the second problem left, how to uninstall automaticly...
Oct 8 '08 #4
tlhintoq
3,525 Expert 2GB
I think you can do that in an installer package project. Dependancies or something. I've never done it though
This sounds a lot like giving advice on how to install a virus, trojan or tracker. Which I thought we didn't do here. I've seen a lot of 'scoldings' for even asking how to log keystrokes and the like. But its okay to hide the installation of an entire program from the user? They think they are installing a.exe and they are also getting b.exe without their knowledge so it can do.. what? report all their credit card details and use their email to spread?
Oct 8 '08 #5
Plater
7,872 Expert 4TB
I thought that too. But the OP said they wanted it to be removed when A gets uninstalled too. So it *could* be legitamate.
Oct 8 '08 #6
myusernotyours
188 100+
Maybe the OP should tell us why he wants to install secretly... It may be interesting to know. But we can be sure the user din't request it.

Regards,

Alex.
Oct 8 '08 #7
Frinavale
9,735 Expert Mod 8TB
I thought that too. But the OP said they wanted it to be removed when A gets uninstalled too. So it *could* be legitamate.
That's why I didn't remove this post when I first read it.
Oct 8 '08 #8
pstve
6
This sounds a lot like giving advice on how to install a virus, trojan or tracker. Which I thought we didn't do here. I've seen a lot of 'scoldings' for even asking how to log keystrokes and the like. But its okay to hide the installation of an entire program from the user? They think they are installing a.exe and they are also getting b.exe without their knowledge so it can do.. what? report all their credit card details and use their email to spread?

NO NO NO NO NO!! THIS IS NOT ABOUT ANY VIRUS!!!! And I can promise this is absolutely legal!!!!
Oct 20 '08 #9
pstve
6
Maybe the OP should tell us why he wants to install secretly... It may be interesting to know. But we can be sure the user din't request it.

Regards,

Alex.
What do you mean with "sure the user didn't request it"?
I've got my program A (which NOT handling any type of virus, it takes care of signals), and a feature in A, is that user can use program B (which is comlepetly legal, both for me to use and for the user to use and in all ways you can think about) for analyzing these signals. But so the user doesn't have to think so much by him/herself, it will install automaticly, and also uninstall when A is uninstalled. So - NO VIRUS OR UNLEGAL THINGS HERE!!!
Oct 20 '08 #10
Frinavale
9,735 Expert Mod 8TB
What do you mean with "sure the user didn't request it"?
I've got my program A (which NOT handling any type of virus, it takes care of signals), and a feature in A, is that user can use program B (which is comlepetly legal, both for me to use and for the user to use and in all ways you can think about) for analyzing these signals. But so the user doesn't have to think so much by him/herself, it will install automaticly, and also uninstall when A is uninstalled. So - NO VIRUS OR UNLEGAL THINGS HERE!!!
In this case, have a splash screen that informs the user why program B is being installed. Let the user know exactly what they are installing instead of hiding this from them.

When you hide programs from being installed it is considered Highly suspicious because this technique is used when developing malicious code such as viruses.

Aside from that... if the user was browsing their list of installed software, they would wonder why program B was installed and may even choose to uninstall it because they don't know what it is or why it is installed....this would break your program.

It is a very good idea to inform the user of what exactly is being installed.

<edit> Just a thought...instead of installing all of program B, would it be possible just to install the component (the .dll) of program B that your software needs to use??</edit>

-Frinny
Oct 20 '08 #11

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

Similar topics

4
by: Silas | last post by:
Hi, I use view to join difference table together for some function. However, when the "real" table fields changed (e.g. add/delete/change field). The view table still use the "old fields". ...
30
by: bblais | last post by:
Hello, Let me start by saying that I am coming from a background using Matlab (or Octave), and C++. I am going to outline the basic nuts-and-bolts of how I work in these languages, and ask for...
1
by: Tyno Gendo | last post by:
Hi everyone I need to move on a step in my PHP... I know what classes are, both in PHP4 and 5 and I'm aware of "patterns" existing, but what I'm looking for are some real world projects eg....
71
by: Jack | last post by:
I understand that the standard Python distribution is considered the C-Python. Howerver, the current C-Python is really a combination of C and Python implementation. There are about 2000 Python...
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...
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...
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
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...

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.