By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,684 Members | 1,309 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,684 IT Pros & Developers. It's quick & easy.

Package & Deployment questsion:

P: n/a
I am working on the setup project of my small vb.net program. I don't want
to give the user (the person who will install my program) an option where
(s)he wants to install the program/utility. For example it should only be
installed only in C:\NEWPROGRAM directory. Please tell me in simple steps..

Thanks in advance!
Nov 20 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
* "I_AM_DON_AND_YOU?" <us**@domain.com> scripsit:
I am working on the setup project of my small vb.net program. I don't want
to give the user (the person who will install my program) an option where
(s)he wants to install the program/utility. For example it should only be
installed only in C:\NEWPROGRAM directory. Please tell me in simple steps..


Why not? I would not install a program like this...

--
Herfried K. Wagner
MVP VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #2

P: n/a
Cor
Hi Herfried,
That is probably easy to answer even for me.
Because probably Don has made a hard coded reference to is.
So I give Don an answer not knowing if that is right.

Hi Don,
It is easy to find the program-files directory, maybe you can use that in
your program, so there is no need for hardcoding the program directory.
And now I in doubt which it is :-)
\\\\
Environment.GetFolderPath(Environment.SpecialFolde r.ProgramFiles)
Environment.GetFolderPath(Environment.SpecialFolde r.Programs)
////
But I think that is easy to find for yourself which one if you know the
trick?

Cor

Nov 20 '05 #3

P: n/a
* "Cor" <no*@non.com> scripsit:
That is probably easy to answer even for me.
Because probably Don has made a hard coded reference to is.
So I give Don an answer not knowing if that is right.


That's why I asked.

--
Herfried K. Wagner
MVP VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #4

P: n/a
Cor
HI Herfried,
Of course
I did not doubt on that
:-)
Cor
That's why I asked.

Nov 20 '05 #5

P: n/a
* "Cor" <no*@non.com> scripsit:
Of course
I did not doubt on that
:-)
Cor
That's why I asked.


Zzz...

;-)

--
Herfried K. Wagner
MVP VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #6

P: n/a
As others have pointed out, not giving the user a choice of where it goes
is not recommended and violates Windows Logo. However, if you really want
to do it... you can change the DefaultLocation property of the Application
Folder in the setup project, change it to C:\NEWPROGRAM. Then, go to the
UI editor, and delete the "Installation Folder" dialog, that's the one that
asks the user where to install it to.

---
David Guyer - VBQA Deployment Testing
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
From: "I_AM_DON_AND_YOU?" <us**@domain.com>
Subject: Package & Deployment questsion:
Date: Wed, 15 Oct 2003 00:52:32 -0700
Lines: 8
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <et*************@TK2MSFTNGP11.phx.gbl>
Newsgroups: microsoft.public.dotnet.languages.vb
NNTP-Posting-Host: ppp-67-125-114-206.dialup.irvnca.pacbell.net 67.125.114.206Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:146806
X-Tomcat-NG: microsoft.public.dotnet.languages.vb

I am working on the setup project of my small vb.net program. I don't want
to give the user (the person who will install my program) an option where
(s)he wants to install the program/utility. For example it should only be
installed only in C:\NEWPROGRAM directory. Please tell me in simple steps..

Thanks in advance!


Nov 20 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.