Using an application over a LAN

0
August 07, 1998

I have written an application that needs to be used on a LAN.  The application setup wizard takes care of registering everything on a single PC, but how do you go about writing a setup program that will setup the users PC to be able to run the application off of the LAN?  The exe will reside on the LAN, but the users PC needs all of the dll's installed and everything registered.

9

answers

Comments See all(0)

Add comment
0
September 07, 1998

1) Create a setup which does have include the exe.  Copy the [Setup] Section to a temporary file.

2) Create the proper Setup

3) Add the Setup Section back into Setup.lst adjust it to point to the exe's network location.

0
August 07, 1998

Install the application in each PC as normal, then change the shortcuts on each PC to point to the .exe on the "server".

0
August 07, 1998

Thanks for the input electrick, but there has to be a better way.  This app will be used by A LOT of users, and I have to program for the lowest common denominator.  The less the users have to do, the less likely we are have problems.  I just want the users to click on a setup program on the LAN that will setup the individual PC to use the application and automatically point to the application on the LAN.

0
August 07, 1998

There is an installation program called WISE that can create shortcuts the way you want...  It costs about $69.00.

I do believe there is a way to create links using the API within Visual Basic but I have never tried it.  

You may want to check the Microsoft Knowledge Base or the Previously asked Questions here...

0
August 07, 1998

The is also InstallShield. It does nearly anything, but is a *bit* more than WISE.

0
September 07, 1998

Create your setup disks as normal but don't include the files that will be access from the server (The .EXE, any non-local datafiles etc).  

Have a look at the [Setup] Section of Setup.lst (Created by Setup Wizard on the first disk) - modify this and you can get Setup Wizard to create a shortcut to a file on another PC

0
September 07, 1998

Right from the Microsoft Knowledge Base:

HOWTO: Create Shortcuts (Shell Links) within Windows

Last reviewed: October 30, 1997

Article ID: Q155303

The information in this article applies to:

?Microsoft Visual Basic Control Creation, Learning, Professional, and Enterprise Editions for Windows, version 5.0 ?Standard, Professional, and Enterprise Editions of Microsoft Visual Basic, 32-bit only, for Windows, version 4.0

SUMMARY

Sometimes it is necessary to create shortcuts to your applications or documents somewhere on another user's system. Do this by calling the fCreateShellLink API function found in the STKIT432.DLL file that ships with the Setup Kit in Microsoft Visual Basic version 4.0 for Windows. Below are the steps that show you how to do this.

MORE INFORMATION

Shell links, also known as shortcuts, are a convenient way to reference objects within the shell name space (the hierarchical structure of objects in the Microsoft Windows 95 shell) without having to keep track of the name and location of the original object. Shell links are referred to as shortcuts in the Context menu (that appears when you right-click an object) of shell objects. They are implemented internally via the IShellLink interface.

Steps for Creating a Shell Link (Shortcut) to the Desktop

1.Start a new project in Visual Basic. Form1 is created by default.

2.Add a Command button (Command1) to Form1.

3.Add the following code to the General Declarations section of Form1:

Option Explicit

      Private Declare Function fCreateShellLink Lib "STKIT432.DLL" (ByVal _

        lpstrFolderName As String, ByVal lpstrLinkName As String, ByVal _

        lpstrLinkPath As String, ByVal lpstrLinkArgs As String) As Long

      Sub Command1_Click()

        Dim lReturn As Long

        'Add to Desktop

        lReturn = fCreateShellLink("....\De

sktop", _

        "Shortcut to Calculator", "c:\Winnt\system32\calc.ex

e", "")

        'Add to Program Menu Group

        lReturn = fCreateShellLink("", "Shortcut to Calculator", _

        "c:\Winnt\system32\calc.ex

e", "")

        'Add to Startup Group

        lReturn = fCreateShellLink("\Startup

", "Shortcut to Calculator", _

        "c:\Winnt\system32\calc.ex

e", "")

      End Sub

4.Press the F5 key to run the project, and then click the Command button.

NOTE: If you are running Windows NT, the above example works correctly. If you are running Windows 95, change the Calc.exe path to the following:

   C:\Windows\Calc.exe

This creates a shortcut to the Calc.exe file on the user's desktop, a program group, and a reference to it in the Startup items.

REFERENCES

Please refer to the sample on the Visual Basic 5.0 CD-ROM: Tools\Unsupprt\ShellLnk

For additional information, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q140443

   TITLE     : How To Create a Shortcut on the Desktop

Keywords          : APrgOther vb432 VB4WIN vb5all vb5howto

Version           : WINDOWS:4.0,5.0

Platform          : NT WINDOWS

Issue type        : kbhowto

0
September 07, 1998

shagnasty, you have me going in the right direction, but I have one last problem.  If I don't include the .exe file with the setup, it does not create a shortcut for me.  Any hints on this?  The points are still yours anyway, I would just like some help over this last hurdle.

0
September 07, 1998

I tried that, and it still doesn't work.  What I am going to do is change the DefaultDir= and hardcode in the network path.  This installs the proper system files on their PC, but creates a shortcut to the exe on the LAN.  The only bad part is the exe is overwritten every time somebody installes the application, but this shouldn't hurt anything.  Thanks for the help.

Related Questions

This is the very first question

Hello guys! This is the first post in this site Read More

Views

2k

Votes

4

Answers

2

January 08, 2016

report values not showing up.

I have a crystal report which I pass a DataSet to using VB.NET. The report was working fine, but then I make some changes to the import query and now nothing shows up in the crystal report. Crystal do Read More

Views

1k

Votes

0

Answers

12

September 06, 2005

Event log doesn't overwrite as needed in SP4

Hello All, After upgrading from SP3 to SP4 on several Windows 2000 PRO machines everything looked fine, but from time to time applications can't write to the event log. When I try to view the appl Read More

Views

1k

Votes

0

Answers

9

May 11, 2003

"Failed to self-register XYZ.dll"

Hi there, I wrote a OLE-automation-server DLL in VB4.0. I use Installshield Express to install it as part of my program on the target computers. Now on some computers I get the message "Failed to Read More

Views

1k

Votes

0

Answers

2

November 08, 1998

Please help understand these notes on image processing

Can someone please help me understand these lecture notes... On the right of the page; What does "normalised by one notion of the area of a pixel" mean? On the first formula for A, Is that a Read More

Views

1k

Votes

0

Answers

3

February 05, 2009

Can someone please explain this paragram on the chain rule in image processing

Please see the screenshot, How is 3133030 got from 10103322? Read More

Views

1k

Votes

0

Answers

1

January 05, 2009

AD on 2003

We have created an AD Domain on Windows 2000 Server with no problems. We just created an AD Domain on Windows 2003 and we're getting some weird problems. Both of these domains are behind firewalls Read More

Views

1k

Votes

0

Answers

15

May 11, 2003

ADDT ASP Upload Error " Type mismatch: 'tNG_isFileInsideBaseFolder' "

I am trying to create a simple insert record and upload image function on an ASP page built using Adobe Dreamweaver Developer Toolkit. I have done this many times before with no problem, however, i ha Read More

Views

1k

Votes

0

Answers

0

November 02, 2008

MYSQL Select query with custom ORDER BY

Hi, is it possible to customize the order of the returned rows in mysql? Example: I have a Table with a column "name", now I want to have all entries ordered by name, but I want the entries Read More

Views

1k

Votes

0

Answers

5

July 02, 2010

Folder Redirection in Server 2003

We have a Windows Server 2003 Standard Ed. Is there a way to redirect the users my documents to a folder that has already been created on the server? Read More

Views

936

Votes

0

Answers

2

July 05, 2007

Partiton magic  version 8.0 having error 1523 while executing batch

I followed the partition magic 8.0 wizard to partition my hard disk while rebooting  I came across this problem  "error 1523 while executing batch" What can I do to solve this prob Read More

Views

861

Votes

0

Answers

2

May 11, 2003

Please explain this paragraph in image processing (screenshot attached)

Two questions; How is the equation (10.1-15) formed? "are isotropic for rotation increments of 90 degrees and 45 degrees respectively" What does this mean Read More

Views

659

Votes

0

Answers

7

January 05, 2009

xp_cmdshell with net use

Hi, when I use 'net use \192.168.0.1\c$ password /user:username' at the command prompt, it works fine.  But if i try to use it in sql with " exec master..xp_cmdshell 'net use \19 Read More

Views

616

Votes

0

Answers

5

April 11, 2003

hp ux11

i have a hp ux11 server. and i edited the /etc/resolv.conf to use my win2003 server dns server. That went fine, however, I would like to go the other way and add an entry on my win2003 dns to resolve Read More

Views

359

Votes

0

Answers

3

October 12, 2009

Need subnet of 12 IPs.

Please, Can someone help me to create a subnet consisting of 12 IP's. Thanks.. Read More

Views

311

Votes

0

Answers

5

April 11, 2003

Drill down in a cross-tabl report

Hello, Would some experts to show me if it is possible to do drill-up or drill-down (or both) in a cross-tab report? I would also like to know if it is possible to control what fields to be displayed/ Read More

Views

253

Votes

0

Answers

0

September 06, 2005

Using RDO, Enterprise V Professional

We would like to use RDO on our project made up of 4 developers. Do we need to have a copy of Enterprise for each developer or is it possible to use Professional for those developers not writing the R Read More

Views

300

Votes

0

Answers

6

January 07, 1998

Can't Edit IIS Metabase.xml

We do this on every windows 2003 server and never had an issue. We cannot edit the IIS Metabase.xml We have stopped IIS and made change click save, no problem but it does not take the new information. Read More

Views

309

Votes

0

Answers

0

July 05, 2007

copy directorires - HP UNIX

Let's say my source file is /A/B/C/D/file1, and mytarget directory is /E/F/G, I want the result should look like this. /E/F/G/A/B/C/D/file1 I am using rsync to copy the files older than x no of da Read More

Views

318

Votes

0

Answers

14

September 12, 2009

unable to shutdown

My windows shutdown will restart itself automatically everytime I shut down the PC. Another query is, how can I have 2 network settings in windows 2000. This is because I'm travelling to 2 diferen Read More

Views

173

Votes

0

Answers

6

April 11, 2003