MSFN Forum: Running Regedit /S - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Running Regedit /S Rate Topic: -----

#1 User is offline   buzzman2005 

  • Junior
  • Pip
  • Group: Members
  • Posts: 54
  • Joined: 11-December 04

Posted 23 December 2004 - 07:13 PM

Hey yall
Hope i'm posting in the right spot for this.....

i'm using WPI to install adobe audition... i need to add a registry entry after it's installed so i am running regedit /s path\*.reg as the code to silently install the reg file....

every time i get an error heres my WPI code

prog[pn]=['Adobe Audition']
desc[pn]=['Installs Adobe Audition.<br /><br />Create and edit audio with ease. <br /> <br /> ']
cmd1[pn]=['"%systemdrive%\INSTALL\\APPLICATIONS\\ADOBE\\ADOBE AUDITION\\ADOBE AUDITION 1.0\\AUDITION.MSI" /QR"']
cmd2[pn]=['"REGEDIT /S %systemdrive%\\install\\AUDITION.reg"']
dflt[pn]=['yes']
cat[pn]=['Adobe Software']
ordr[pn]=[1]
uid[pn]=['audition']
pn++


error message attached in jpg....

thanks

Attached File(s)

  • Attached File  ex1.JPG (17.15K)
    Number of downloads: 85



#2 User is offline   Astalavista 

  • MSFN loyalist
  • PipPipPipPipPipPipPipPipPip
  • Group: Banned
  • Posts: 3,338
  • Joined: 02-December 03

Posted 23 December 2004 - 07:25 PM

wrong area to post... pls post in correct forum

regedit /s is used with rega not cmd

#3 User is offline   Incroyable HULK 

  • Slowly Turning Green...
  • Group: Super Moderator
  • Posts: 1,256
  • Joined: 05-March 04
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 23 December 2004 - 07:27 PM

Why is there only one \ in front of INSTALL and then two \\ in front of the next install (not in capital letter)?

#4 User is offline   buzzman2005 

  • Junior
  • Pip
  • Group: Members
  • Posts: 54
  • Joined: 11-December 04

Posted 23 December 2004 - 07:34 PM

astalavista-which forum woulf be better apps or WPI???


the cmd1 line works fine its this one that doesnt....

cmd2[pn]=['"REGEDIT /S %systemdrive%\\install\\AUDITION.reg"']


#5 User is offline   buzzman2005 

  • Junior
  • Pip
  • Group: Members
  • Posts: 54
  • Joined: 11-December 04

Posted 23 December 2004 - 08:00 PM

ok i got regedit to work by doign this....

cmd1[pn]=['"regedit" /s ']


but when i try to import the reg entry like this.....

cmd1[pn]=['"regedit" /s %systemdrive%\\install\\AUDITION.reg']


it doesnt work..... why?

#6 User is offline   bonedaddy 

  • Bonafide Member
  • PipPipPip
  • Group: Members
  • Posts: 454
  • Joined: 20-October 03

Posted 23 December 2004 - 08:16 PM

all mine work like this but who knows, after some guys see this they say

that is not going to work but it does................

BD

Quote

cmd2[pn]=['regedit /s %cdrom%\\software\\sygate.reg']


#7 User is offline   bonedaddy 

  • Bonafide Member
  • PipPipPip
  • Group: Members
  • Posts: 454
  • Joined: 20-October 03

Posted 23 December 2004 - 08:18 PM

I'd get rid ot the " if it was me......................

BD

#8 User is offline   buzzman2005 

  • Junior
  • Pip
  • Group: Members
  • Posts: 54
  • Joined: 11-December 04

Posted 23 December 2004 - 08:27 PM

bonedaddy
thanks !!!!
that solved the problem...... for somereason when i'm installing the apps it wont work though wthout the " so thanks


DONE

#9 User is offline   BritishBulldog 

  • Member
  • PipPip
  • Group: Members
  • Posts: 271
  • Joined: 11-October 04

Posted 24 December 2004 - 07:20 AM

The correct entry for a registry entry after a programme has been installed is

rega[pn]=['%systemdrive%\\install\\AUDITION.reg']


the rest is added automatically by WPI. So you dont need the register /s in there.
Put this in after your cmd1 line

prog[pn]=['Adobe Audition']
desc[pn]=['Installs Adobe Audition.<br /><br />Create and edit audio with ease. <br /> <br /> ']
cmd1[pn]=['"%systemdrive%\\INSTALL\\APPLICATIONS\\ADOBE\\ADOBE AUDITION\\ADOBE AUDITION 1.0\\AUDITION.MSI" /QR"']
rega[pn]=['%systemdrive%\\install\\AUDITION.reg']
dflt[pn]=['yes']
cat[pn]=['Adobe Software']
ordr[pn]=[1]
uid[pn]=['audition']
pn++


#10 User is offline   a06lp 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 976
  • Joined: 19-August 04

Posted 24 December 2004 - 01:15 PM

BritishBulldog wrote the 'correct' way to do it.

however, bonedaddy's method will work as well.

think of the the regb and rega commands as putting in the "regedit /s " part, and you only have to fill in the file path.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy