Page 1 of 1 1
Topic Options
#144183 - 2005-07-22 09:02 PM Registering OCX files
StarwarsKid Offline
Seasoned Scripter
*****

Registered: 2005-06-15
Posts: 506
Loc: Oregon, USA
Has anyone used KiXstart to register OCX files in WinXP?

I did a search and it looks like regsvr32 is scripted like this:
Code:
 SHELL '%COMSPEC% /c %WINDIR%\System32\Regsvr32 /u /s $KixFormsFile > nul' 



Is that how I should do it?
_________________________
let the wise listen and add to their learning,
and let the discerning get guidance- Proverbs 1:5

Top
#144184 - 2005-07-22 09:06 PM Re: Registering OCX files
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11634
Loc: Space
Well that would silently UNREGISTER it.
Top
#144185 - 2005-07-22 10:42 PM Re: Registering OCX files
StarwarsKid Offline
Seasoned Scripter
*****

Registered: 2005-06-15
Posts: 506
Loc: Oregon, USA
Thanks, I just wanted to know if the general syntax would properly run the regsvr32 tool. The details of the code snippet were taken from another post.

Could you clarify what the
Quote:

> nul


is used for?
_________________________
let the wise listen and add to their learning,
and let the discerning get guidance- Proverbs 1:5

Top
#144186 - 2005-07-22 10:46 PM Re: Registering OCX files
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
Code:

Shell "%WINDIR%\System32\Regsvr32 /s MyOcx.OCX"


...should do it.

Top
#144187 - 2005-07-22 10:48 PM Re: Registering OCX files
StarwarsKid Offline
Seasoned Scripter
*****

Registered: 2005-06-15
Posts: 506
Loc: Oregon, USA
Thanks Chris. That's just what I was looking for.
_________________________
let the wise listen and add to their learning,
and let the discerning get guidance- Proverbs 1:5

Top
#144188 - 2005-07-23 03:03 AM Re: Registering OCX files
AzzerShaw Offline
Seasoned Scripter
****

Registered: 2003-02-20
Posts: 510
Loc: Cheltenham, England
b4 anyone says "wasnt that the same in NT?"
_________________________
If at first you don't succeed, try again. Then quit. There's no use being a damn fool about it. - W.C Fields

Top
#144189 - 2005-07-23 04:51 AM Re: Registering OCX files
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Quote:


Could you clarify what the
Quote:

> nul


is used for?




With it being slient, I don't see the need for the re-direct to nul. The > is a re-direct and the nul is a blank screen (you don't see anything).

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#144190 - 2005-07-23 04:03 PM Re: Registering OCX files
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
I think there's even a FAQ about the redirection.
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1635 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.057 seconds in which 0.024 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org