Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Run As SYSTEM


Hi,

I have written a piece of software to run on a network. When a client runs the software, it should automatically create a reg. key that tells the software where the database is.

However, if a student is logged on, the software cannot modify the registry.

Therefore, how can I get my software to run under SYSTEM credentials without making it a service. Is it possible?




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
How To Add Things To System.ini Or System.dat So Program Runs When Windows Start ?
Hi,

Pls tell me how and what to add things to system.ini or system.dat so program runs when windows start ?

note: i am workin on a pc locking program.

thnx in advance

Setup Cannot Continue Because Some System Files Are Out Of Date On Your System.
I realized that many people, just like myself, were having problems with the Package and Deployment Wizard for VB 6.0 and when trying to install their program on another PC they were getting the following message:

"Setup cannot continue because some system files are out of date on your system. Click OK if you would like setup to update these files for you now. You will need to restart Windows before you can run setup again. Click cancel to exit setup without updating system files."

Microsoft addresses this issue in their Help and Support and proposes 8 solutions.

However, I found out that the problem was coming from the Bootstrap files in the Setup.LST file.
If you open Setup.LST (generated with the wizard) you'll see something like this:

[Bootstrap Files]
File1=@VB6STKIT.DLL,$(WinSysPathSysFile),,,3 25 99 11:00:00 PM,101888,6.0.84.50
File2=@MSVCRT40.DLL,$(WinSysPathSysFile),,,5 30 98 11:00:00 PM,326656,4.21.0.0
File3=@COMCAT.DLL,$(WinSysPathSysFile),$(DLLSelfRegister),,5 30 98 11:00:00 PM,22288,4.71.1460.1
File4=@stdole2.tlb,$(WinSysPathSysFile),$(TLBRegister),,8 23 01 1:00:00 PM,17920,3.50.5014.0
File5=@asycfilt.dll,$(WinSysPathSysFile),,,8 4 04 8:56:41 AM,65024,5.1.2600.2180
File6=@olepro32.dll,$(WinSysPathSysFile),$(DLLSelfRegister),,8 4 04 8:56:44 AM,83456,5.1.2600.2180
File7=@oleaut32.dll,$(WinSysPathSysFile),$(DLLSelfRegister),,8 4 04 8:56:44 AM,553472,5.1.2600.2180
File8=@msvbvm60.dll,$(WinSysPathSysFile),$(DLLSelfRegister),,8 4 04 8:56:43 AM,1392671,6.0.96.90

Files 1 through 3 are needed to run your VB 6.0 program, but Files 4 through 8 were the ones that were "out of date" and caused the error. Since the host PC will most certainly have these files, there is no need for your program to install them (or even update them). So you can just insert a colon ";" in front of the lines for File 4 through 8 for the installation to ignore these commands.

So open your Setup.LST and change it like this:

[Bootstrap Files]
File1=@VB6STKIT.DLL,$(WinSysPathSysFile),,,3 25 99 11:00:00 PM,101888,6.0.84.50
File2=@MSVCRT40.DLL,$(WinSysPathSysFile),,,5 30 98 11:00:00 PM,326656,4.21.0.0
File3=@COMCAT.DLL,$(WinSysPathSysFile),$(DLLSelfRegister),,5 30 98 11:00:00 PM,22288,4.71.1460.1
;File4=@stdole2.tlb,$(WinSysPathSysFile),$(TLBRegister),,8 23 01 1:00:00 PM,17920,3.50.5014.0
;File5=@asycfilt.dll,$(WinSysPathSysFile),,,8 4 04 8:56:41 AM,65024,5.1.2600.2180
;File6=@olepro32.dll,$(WinSysPathSysFile),$(DLLSelfRegister),,8 4 04 8:56:44 AM,83456,5.1.2600.2180
;File7=@oleaut32.dll,$(WinSysPathSysFile),$(DLLSelfRegister),,8 4 04 8:56:44 AM,553472,5.1.2600.2180
;File8=@msvbvm60.dll,$(WinSysPathSysFile),$(DLLSelfRegister),,8 4 04 8:56:43 AM,1392671,6.0.96.90

Save it, close it, and try installing your program again.

Note: You may have other DLL files than those listed above, so you have to make sure which ones are the one out of date.

Hope this helps some of you out there.

Setup Cannot Continue Because Some System Files Are Out Of Date On Your System
Hi,
I am getting this error when i am trying to install my application in client workstations. the application was developed in office xp sp2. it's working without any problem in some computers but not in few xp computers and all of windows 2000 computers. i tried running vb60.exe and scripten.exe. i read that updating oleaut32.dll can also solve the problem. so i copied that file from my computer to those computers and it worked in one but didn't in others.

anyway i can solve this problem?

Setup Cannot Continue Because Some System Files Are Out Of Date On Your System.
Hi,

I am having problem in installing the VB package into one of the computer. I packaged all my VB installation files using PDWizard, and I have successfully installed it on the other computer. Both computer are running Windows XP.

This is the error that I've got:

Setup cannot continue because some system files are out of date on your system. Click OK if you would like setup to update these files now. You will need to restart Windows before you can run setup again. Click Cancel to exit setup without updating system files.

I have tried to restart and reinstalled, but it prompted me the same error message again and again. I have update the MDAC to version 2.8. I have also tried to disable the Norton Antivirus since I read that maybe the .olb file in Norton uses different version as Windows.

Did anybody encounter this problem before? I would appreciate if you can give me any solutions.


Thanks,
Jenty

Show Icon In System Tray When My System Starts
Hi all

I have done an application in VB6 which when minimized sits in the system tray.
Till this point its working fine.
but i need to do some more modification for this.

I want the application Icon to appear in the system tray when the system(CPU) starts (like yahoo messenger icon sits in sytem tray as soon as the system starts).

can anyone help me with the code.

Thanks in advance.

regards
Rajmv

Help On System Sound (muting System Audio)!
Hy i was wondering if anyone could help me on muting or changing SYSTEM
SOUND setting's i need this because my sister drives me nuts with here
music on my computer and she listens to it full blast Help is really wanted and
needed on this subject lol.

How To Find The Remote System Name Using That System Ip Address
Hi


How to find the remote system name using that system ip address?

U.Srikanth

How To Send Message Form One System To Another System
hai

my network have 5 systems all are window 95 systems

i want to send message to any system.

my friend said one command for NET SEND but it is not worked in
the windows 95 or window 98 systems
how to send messages

POS System With Reward System (RFID Card)
HI folks...


I'm currently intend to develop a customer/reward system that capture the amount purchase each time.
The membership card is a RFID card, i will used a desktop reader to read the card.
But the problem is, POS system have been used. So,how am i going to read the amount purchase from the POS system to my reward system. Is not a good pratice to let the cashier to key keyin the amount munaully.

Anyone can give me some advice..? like how to reside the vb system into POS..., or others good method to do it so that cashier have the easy way to do the daily task....

Thanks in advance..


=Elvis=

Money System, Date System, Etc.
I am trying to create my first "Wrestling Simulator" and I have gotten stuck on trying to make the money system, date system, save system, and wrestler system work. I need to figure out how to make the money go up in certain cases and vice versa and when at 0 I need it to end the game. In the case of the Wrestler System, I need to find out how to make it say the name of the wrestler in matches, news, etc. without having to add 5x the amount of coding for each. The Date system and Save system are pretty self explanitory.

System Date And System Time
(on click of command button) how do i save the text in a textbox to a .txt file with "Log - " + system date + " - " + system time ? into the application's folder...

How To Copy A File From One System To Another System
hai

there are two systems are connected with the lan

i want to copy one file from one system to another system with using FileSystemObject

"Setup Cannot Continue Because Some System Files Are Out Of Date On Your System"
Hello,

I've created an install program with the package & deployment wizard that ships with vb6. When i try to intall my program on windows 2000 (can't really say if it is just windows 2000 at this point) I get the error:

"Setup cannot continue because some system files are out of date on your system. Click OK if you would like setup to update these files for you now. You will need to re-start windows before you can run setup again. CLick cancel to exit setup without updating these files."

It seems no matter how many times I click ok and re-start the system, the message continues to pop up and wont let me install the program. Any suggestions?

Also, when i do successfully get the install to work on certain machines, it displays:

"An error occured while trying to register the file "C:windowssystem32msado25.tlb"

Ideas?

Thank you.

System Tray Control...MUST SEE 4 PEOPLE WHO WANT ICONS IN SYSTEM TRAY
Since loads of you have been asking, including myself, how to get an icon in the system tray, I thought I'd write a small OCX to do the trick.
So here it is. Download the project and compile it then add the component to your form...then use the following code, which is dead easy to use...Hope it works...

VB Code:
Option ExplicitPrivate Sub Form_Load()    With Tray        Set .ImageList = ImageList1        .Icon = 1 'This can be the index or key of an icon. if no imagelist has been set then this is the handle for a picture...        .EnableMenu = True        .Menu.Add "Visible", "VISIBLE", , , True        .Menu.Add "-"        .Menu.Add "Exit", "EXIT"        .ToolTip = "Mooose and then we walked home"    End WithEnd Sub Private Sub Tray_MenuClick(Item As VBTools.MenuItem)    Select Case Item.Key        Case "VISIBLE"            Item.Checked = Not Item.Checked            If Item.Checked Then                Me.Show            Else                Me.Hide            End If        Case "EXIT"            Unload Me    End SelectEnd Sub

Tis as easy as that
You can change the icon when ever you want...try it...if it's crap tell me ...

Here's the ZIP file....

System Information With VB6 On XP Pro System
Ok guys, Im doing a science fair project othat involves system information, such as

CPU usage, info,temperature, speed, etc
Memory usage, info, speed
Bios Info
Etc Etc
Anything you can help me with would be appriciated. thanks!

Getting System Name For A System In Network
how can get a system name in network, i have only IP- Address.

System Tray, And System Tray Options?
(Commonly known as the 'Notification Area' to windows)

Hey all,

Is there a way in visual basic, so that when the program is minimized, it goes to the system tray, and then when right clicked options show up (like with msn, you have the option to open msn, sing in/out, log in as)

Not sure if this is possible as XP is more recent that VB, but i wasn't sure if there was an add on, or dialog that could be added to VB.

Any ideas welcome.

Thx,
/Richard

Does Anyone Knows Visionpoint / SBT Accounting System Or Knows Any Other Accounting System
I have a project that converting Old Dos-based Accounting program written in Vision Point developement tool that is not supported anymore.
It's very large and also hard to convert since it has its own way that applys general purpose..
I found out it will be very hard to give whole functionality of the system using VB6 and Access DB.
Since I have to re-create whole Accounting system. It's too much.
So, I'm thinking if there is some tools that creating Account system like Vision Point that is based on Window system, it will be better to use the tool.
Does any one knows this kind of program or any experience with similar situation?
And what is best way to make direction? What should I do?

Any opinion will help.!!
Thank you.

Help System For VB...
Hi all,

I am a major nOObie...

I have to create a small airline booking system for a uni assignment...

The program needs to have a typical Help system, like the ones we all love in windows

What are some programs that will be easy enough for me to integrate/write/learn..???

Appreciate your time

Cheers

Paul

System DSN
Where is system DSN info stored?

FTP System
I am planning to devlope my own FTP program to upload my files to my site. Is this possible with visual basic?

If yes what are the resources, objects, controls, library I need to include in my program. Such as what object should I use to display the files in my server.


Thank you in advance
Ed

VBA Help System
Hi,

I am trying to create a help system for my VBA program.

I am looking to re-create the help system that FireFox uses. Its fairly simple, looks good and has the layout im looking for.

It has a cascading menu system down the left hand side and a main screen on the right to show the selected help topic. There is also a bar at the top with search, print & home functions.

How would i create a help system like this? Are they a series of help files called from the internet or stored in the firefox directory?

thanks.

Help Me With This System...
I got 1 file ( Trade.mdb ).. Inside this file I got 3 table which is Data151, MKCW442 and KOR_tbl..

So when user choose file Data151 and click button process.. I want it to be like this:

1. Read the field Ctry. If the field Ctry = Asean Country which is ( MY, TH, SG, BN, ID, PH, KH, MM, VN, LA ) then have to compare with field HS in table Data151 and compare also with field AHTN 2004 or field AHTN_ABJAD 2004 in table Master1

2. If same, then transfer the all information from field AHTN10_2007 in table Master1 to the new table ( Output )

3.Transfer all the information that have been modified or not to the new table ( Output )

3. After finish process, must come out one message box which is PROCESS SUCCESS

Ok thank you.. I really don't know about this..

Vb5 && Vb6 On Same System
hiyas

i just installed windows again, now i might get my hands onto vb6, but i still like vb5's helpfiles...

now does anyone ever tried to run both versions? if so, would you suggest it or not?
OR, is there a way to get the vb5 helpfiles run in vb6?

thanks in advance

CD Key System
Could someone point me in the direction of information on implementing a "security system" like CD keys pertaining to Visual Basic? I have searched the Internet but little information exists as far as I can tell.

Thanks!

What Is ERP System?
what is ERP system? any example? thanks

Get System RAM
I tried searching for this one in the forums, but apparently the 'Search' feature doesn't like the word 'RAM'. Whatever. I'm working on a very simple utility that will tell me some of a systems basics. How do I get a nice little value that tells me how much RAM the system has (e.g. 512 MB), and maybe even how much RAM is available (e.g. 217 MB). I know it can be done, as it is shown on the System Information window. Thanks.

VBA Help System
Hi,

I am trying to create a help system for my VBA program.

I am looking to re-create the help system that FireFox uses. Its fairly simple, looks good and has the layout im looking for.

It has a cascading menu system down the left hand side and a main screen on the right to show the selected help topic. There is also a bar at the top with search, print & home functions.

How would i create a help system like this? Are they a series of help files called from the internet or stored in the firefox directory?

thanks.

System.ini
Hi

i am listing startup entries located in various part of the windows os.
i.e registry, startup folder, win.ini, system.ini

i am running XP with spk1

i run below vb code to list the [boot] section entries (shell=xxx) of system.ini .
the code returns a list of entries as shown in the attached picture.

but when i open system.ini file directly using startmenu 'Run' dialog the above
shown entries are not present in the ini file.

If my code is correct then from where the entries returned by the code (shown in the picture) are comming?

i know ini files are maped to the registry in xp / 2k. for ecample the win.ini is maped to
HKEY_CURRENT_USERSoftwareMicrosoftWindows NTCurrentVersionWindows

but i did not find one for system.ini in registry

to chek my below code it is better to create a section in your system.ini like the following.

[boot]
shell=explorer.exe calc.exe notepad.exe

so my below code should return the 'shell=explorer.exe calc.exe notepad.exe' string.
problem is it does not. insted it ruturns somthing else from someware.



VB Code:
Public Function get_section_systemini(win_str) As StringDim retstring As StringDim lngbuffer As Long retstring = Space(255 * 4)lngbuffer = Len(retstring) GetPrivateProfileSection "boot", retstring, lngbuffer, "system.ini"retstring = Replace(retstring, Chr(0), vbCrLf)win_str = retstringMsgBox retstring


you can also try Rem(ing) 'retstring = Replace(retstring, Chr(0), vbCrLf)

Thank you

Run As System
Hi everyone,

Im looking for code that will allow me to run my app as system instead of user.

I currently set it as a task but this doesnt always work. Somehow the time gets messed up and it sets the task to run the next day, when what i really want is it to run within a few seconds.

Running as a sytem process gives my app certain privileges it wouldn't normally have, like sedebugprivilege after a virus has taken it away.


Any help would be appreciated

SMS System
Dear friends,

We are planning in our thesis project to make a program Inventory System and Controller but the problem is i dont know how to send a message in the cellphone or mobile phone using visual basic program to senf a cellphone...

System.web?
how come i cant find system.web under reference..in vb...as i need that for sending e-mail......?

Getting The System Dir?
How do I get the system dir?(Say like c:windows)

Cheers!

ERP System
Has anyone out there built or ever been involved in building an in-house ERP System?

If so, did it work as expected?

System Changes
Hi All,

Please anybody can help me with this. I need to avoid system configuration changes while my app is running(i.e. system time, date, printers,etc) for specific users in w9x and XP. How can I do it?

Thanks,

Danny

System Log
How to write NT system logs from VB

Getting System Name
hi guys,
anybody has a code getiing system name using api getcomputer name.......or any other way apart from winsock....

System Try?
anyone know how to get my program to show in the system tray and how do i get the menu for it when you right click it in the system try?

System.mdw
when i install my package that uses ADO Jet4.0 etc and then try and run the application it comes up with an error message cannot start application workgroup not found ....

this is because of the system.mdb (system.mdw) workgroup file for MS Access, but surely it shouldnt be needed for a VB prog that opens an access database. Am i right in saying that you shouldnt have to install MS Access just to get my program to work ???

CLI System
I want to connect my phone with modem
and Display number at the time of call received
and display dialed number also

System.dat
Whats that file do? Everytime I write a file to the windows directory it gets rewrote, its 5.9mb!

Log System
Hi There,

Does anyone has some code to generate/view/sort .txt log files generated by an vb application.

Thanks,
Joćo Pinto

How To Get System Name
Dear Friends
please let me know...
through vb coding how to know the system name which is currently using.



........



S.M. Syed Sherfudeen
Scientific/Technical Assistant-'B' ,
NIC, Madhya Pradesh State Unit,
Computer Centre 'C' Wing Basement
Vindhyachal Bhavan,
Bhopal - 460 004,
Madhya Pradesh.
Ph. 0755-551265 ext.112

System.mdw
Hi:

I've this code

Private Sub Command1_Click()
Dim sNombreUsuario As String
Dim sContrasena As String
Dim bd As Database
Dim ws As Workspace
Dim ruta As String

ruta = GetAppDataPath

sNombreUsuario = "username"
sContrasena = "password"

DBEngine.SystemDB = ruta + "microsoftaccesssystem.MDW"
Set ws = DBEngine.CreateWorkspace("MiWorkspace", sNombreUsuario, sContrasena)

Set bd = ws.OpenDatabase(ruta & "iblo.MDB")

end sub

Public Function GetAppDataPath() As String
On Error GoTo ErrGetAppDataPath
Dim p As String
GetAppDataPath = Environ("APPDATA") & ""
Exit Function
ErrGetAppDataPath:
GetAppDataPath = ""
MsgBox Err.Number & ": Error in GetAppDataPath(). Error Description: " & Err.Description, vbCritical, "Error"
Exit Function
End Function



but it appears this error:

Error 3049
Database can't be opened. It's possible that your aplication doesn't recognize this database type or file is damaged

What am I doing wrong. I wrote that path because in Access is possible to join to the WorkGroup Administrator following the next steps
Tools
Security
WorkGroup Administrator
It points the specified path searched by
DBEngine.SystemDB = ruta + "microsoftaccesssystem.MDW"

any help, please

System DSN?
Hi,

Anyone have any experience creating System DSNs in code? Is there an API
function(s) for this? Or do you just have to write all the appropriate
registry keys individually? Any thoughts?

Thanks,

Burnie Fox

System DSN
I've created a system DSN to access a SQLServer 2000 database. I need to access this DSN in an ActiveX DLL that uses ADO. I've tried using a connection string dsn=__;uid=__;pw=__ but that couldn't find the system DSN I created.

What is the correct syntax for doing this?

Thanks in advance for your help.

System DSN
Hi All,
Dbengine.Registerdatabase  iam able to create user dsn dynanically,
what i want is system dsn, can anyone please help me in this?
Regards
John Philip

***  Even the Best, did the Bad and Made the Best ***

John Philip


Help System
I had a help file (winhelp) which I recently converted to the newer
html/CHM. much to my embarrassment, I have no clue how to call this help
system or to set indices, etc. With the old win HLP system, no problem.
Can someone refer me to a site with perhaps some sample code or just reading
material? Thanks in advance!

System DSN
Hi,
I would like to view all created system DSN's as well as be able to delete and possibly edit them.
How do i go about that?
Thank you in advance

Copyright © 2005-08 www.BigResource.com, All rights reserved