Addon causes errors after its uninstalled

Discuss & post Update Pack addons here.
Post Reply
fearphage
Posts: 41
Joined: Mon Jun 12, 2006 1:58 pm
Location: Austin, TX

Addon causes errors after its uninstalled

Post by fearphage » Fri Jun 16, 2006 8:00 pm

First off, this is my very first addon pack ever. I've been working on it for the past 3 days. I could not have done this without looking at DT's tutorials, MrsP's opera addon and Aserone's eraser addon and countless others. I thoroughly and extensively used these to make mine. I hope that is/was ok. :oops:

It is the addon for Opera 9 Beta (build 8493). It was a pointless addon because new builds are released weekly and sometimes even daily. Today they released build 8496. This was just an excercise to see if I could do it.

File: my_opera9_addon.cab
MD5 Hash = A33C561FCB074C6A6C56E8F5F8E9AB82

Everything seem to work perfectly on boot and the browser was functional and all. The problem came after I uninstalled it. Uninstall went perfectly without any errors at all. After using the computer a while, I decided to uninstall a windows component and I got the following error message:

Image

I don't understand why it would still look for my inf file at all. I'm not sure what I did incorrectly. Could someone please let me know?


Sorry again for copying alot of others work.

Entries_Op9b8493.ini

Code: Select all

;Opera Browser v9 beta Addon by Fearphage
[general]
Builddate   = 2006/06/16
Description = Safer faster and easier way to surf the Internet.
Language    = English
Title       = Opera Browser Beta
Version     = 9.8493
Website     = http://http://my.opera.com/desktopteam

[sysoc]
Op9b8493=ocgen.dll,OcEntry,Op9b8493.inf,HIDE,7

[dosnet_files]
d1,Op9b8493.inf
d1,Op9b8493.cab

[txtsetup_files]
Op9b8493.inf = 1,,,,,,,20,0,0
Op9b8493.cab = 1,,,,,,_x,,3,3
Op9b8493.inf

Code: Select all

;Opera Browser v9. Beta (Build 8493)

[Version]
Signature=$Windows NT$

[DefaultInstall]
OptionDesc   = "Opera Web Browser Addon"
Tip		       = "Opera 9 Beta"
Modes	       = 0,1,2,3
CopyFiles    = op9.main,op9.clas,op9.defa,op9.prom,op9.plug,op9.skin,op9.styl,op9.imag,op9.user
AddReg       = op9.Addreg
ProfileItems = Opera.AddShortcut,Desktop.AddShortcut
UpdateInis   = op9.quicklaunch 

[Optional Components]
Opera9

[Opera9]
OptionDesc   = "Opera Web Browser Addon"
Tip		       = "Opera 9 Beta"
Modes	       = 0,1,2,3
CopyFiles    = op9.main,op9.clas,op9.defa,op9.prom,op9.plug,op9.skin,op9.styl,op9.imag,op9.user
AddReg       = op9.Addreg
ProfileItems = Opera.AddShortcut
;,Desktop.AddShortcut
;UpdateInis   = op9.quicklaunch 

;[op9.quicklaunch]
;setup.ini,progman.groups,,QLaunch=%53%\Application Data\Microsoft\Internet Explorer\Quick Launch 
;setup.ini,QLaunch,,"Opera 9 Beta,""""""%24%\Program Files\Mozilla Firefox\firefox.exe"""""""


[SourceDisksNames.x86]
1="Opera 9 Beta (Build 8493) Files","Op9b8493.cab",,"i386"

[DestinationDirs]
op9.main = 16422,"%prog_dir%"
op9.clas = 16422,"%clas_dir%"
op9.defa = 16422,"%defa_dir%"
op9.prom = 16422,"%prom_dir%"
op9.plug = 16422,"%plug_dir%"
op9.skin = 16422,"%skin_dir%"
op9.styl = 16422,"%styl_dir%"
op9.imag = 16422,"%imag_dir%"
op9.user = 16422,"%user_dir%"
op9.sdel = 16407,"%internet%"
op9.idel = 17

[SourceDisksFiles]
c3nform.vxm   = 1
chartabl.bin  = 1
copera.jar    = 1
copera.pol    = 1  
dialog.ini    = 1
english.lng   = 1 
fastforw.ini  = 1
html40_e.dtd  = 1
iembe_ke.ini  = 1
iembe_me.ini  = 1
iembe_mo.ini  = 1
ioperade.adr  = 1
istan_ke.ini  = 1
istan_me.ini  = 1
istan_mo.ini  = 1
istan_to.ini  = 1
istan_vo.ini  = 1
lngcode.txt   = 1
mbar.png      = 1
mcenter.png   = 1
mopera.png    = 1
mroot.png     = 1
mtop.png      = 1
netscape.exe  = 1
Opera.dll     = 1
Opera.exe     = 1
operadef.ini  = 1
ouniansi.dll  = 1
plugin-i.ini  = 1
pnpds.zip     = 1
pnpdspla.dll  = 1
pnpwmsdr.dll  = 1
sabout.css    = 1
scache.css    = 1
scertinf.css  = 1
sconfig.css   = 1
scontent.css  = 1
sdir.css      = 1
sdrives.css   = 1
serror.css    = 1
shistory.css  = 1
sim.css       = 1
simage.css    = 1
sinfo.css     = 1
smime.css     = 1
splugins.css  = 1
swml.css      = 1
search.ini    = 1
spellche.dll  = 1
sta_skin.zip  = 1
uAccessi.css  = 1
uContrab.css  = 1
uContraw.css  = 1
uDebugwi.css  = 1
uDisable.css  = 1
uHidecer.css  = 1
uHidenon.css  = 1
uImagean.css  = 1
unostalg.css  = 1
uShowstr.css  = 1
uTextonl.css  = 1
win_skin.zip  = 1
xmlentit.ini  = 1

[op9.Main]
operadef6.ini,operadef.ini
Opera.exe
Opera.dll
ouniansi.dll
spellcheck.dll,spellche.dll
chartables.bin,chartabl.bin
search.ini
english.lng
dialog.ini
html40_entities.dtd,html40_e.dtd
xmlentities.ini,xmlentit.ini
fastforward.ini,fastforw.ini
plugin-ignore.ini,plugin-i.ini
c3nform.vxml,c3nform.vxm
lngcode.txt

[op9.Clas]
opera.jar,copera.jar  
opera.policy,copera.pol

[op9.Defa]
operadef6.adr,ioperade.adr
embedded_keyboard.ini,iembe_ke.ini
embedded_menu.ini,iembe_me.ini
embedded_mouse.ini,iembe_mo.ini
standard_keyboard.ini,istan_ke.ini
standard_menu.ini,istan_me.ini
standard_mouse.ini,istan_mo.ini
standard_toolbar.ini,istan_to.ini
standard_voice.ini,istan_vo.ini

[op9.Prom]
netscape.exe

[op9.Plug]
npds.zip,pnpds.zip   
npdsplay.dll,pnpdspla.dll
npwmsdrm.dll,pnpwmsdr.dll

[op9.Skin]
standard_skin.zip,sta_skin.zip
windows_skin.zip,win_skin.zip

[op9.Styl]
about.css,sabout.css 
cache.css,scache.css
certinfo.css,scertinf.css
config.css,sconfig.css
contentblock.css,scontent.css
dir.css,sdir.css
drives.css,sdrives.css
error.css,serror.css
history.css,shistory.css
im.css,sim.css
image.css,simage.css
info.css,sinfo.css
mime.css,smime.css
plugins.css,splugins.css
wml.css,swml.css

[op9.Imag]
bar.png,mbar.png
center.png,mcenter.png
opera.png,mopera.png
root.png,mroot.png
top.png,mtop.png

[op9.User]
Accessibility.css,uAccessi.css
Contrastbw.css,uContrab.css
Contrastwb.css,uContraw.css
Debugwithoutline.css,uDebugwi.css
Disabletables.css,uDisable.css
Hidecertainsizes.css,uHidecer.css
Hidenonlinkimages.css,uHidenon.css
Imageandlinkonly.css,uImagean.css
nostalgia.css,unostalg.css
Showstructure.css,uShowstr.css
Textonly.css,uTextonl.css

[Opera.AddShortcut]
Name       = Opera 9 Beta
CmdLine    = 16422,"%prog_dir%",Opera.exe
SubDir     = %internet%
WorkingDir = 16422,"%prog_dir%"
InfoTip    = Simply the best Internet Experience

;[Desktop.AddShortcut]
;Name       = Opera 9 Beta
;CmdLine    = 16422,"%prog_dir%",Opera.exe
;SubDir     = %desktop%
;WorkingDir = 16422,"%prog_dir%"
;InfoTip    = Simply the best Internet Experience

;####################
;     Uninstall Related
;####################
[UninstallOp9]
DelFiles = op9.main,op9.clas,op9.defa,op9.prom,op9.plug,op9.skin,op9.styl,op9.imag,op9.user,op9.sdel,op9.idel
DelDirs  = op9.DelDirs
DelReg   = op9.AddReg
Cleanup  = 1

[op9.AddReg]
HKLM,%reg_path%,"DisplayName",,Opera 9 Beta
HKLM,%reg_path%,"UninstallString",,"rundll32.exe advpack.dll,LaunchINFSection %17%\Op9b8493.inf,UninstallOp9"

[op9.DelDirs]
%16422%\%imag_dir%
%16422%\%user_dir%
%16422%\%styl_dir%
%16422%\%skin_dir%
%16422%\%plug_dir%
%16422%\%prom_dir%
%16422%\%defa_dir%
%16422%\%clas_dir%
%16422%\%prog_dir%

[op9.DelShort]
Opera 9 Beta.lnk

[op9.idel]
Op9b8493.pnf

[op9.sdel]
Opera 9 Beta.lnk

[Strings]
prog_dir = "Internet\Opera 9 beta"
clas_dir = "Internet\Opera 9 beta\classes"
defa_dir = "Internet\Opera 9 beta\defaults"
prom_dir = "Internet\Opera 9 beta\program"
plug_dir = "Internet\Opera 9 beta\program\plugins"
skin_dir = "Internet\Opera 9 beta\skin"
styl_dir = "Internet\Opera 9 beta\styles"
user_dir = "Internet\Opera 9 beta\styles\user"
imag_dir = "Internet\Opera 9 beta\styles\Images"
internet = "Internet"
desktop  = "..\..\Desktop"
shct_dsc = "Opera 9 Beta"
reg_path = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Opera 9 Beta"
Thank you in advance for any assistance.

User avatar
5eraph
Site Admin
Posts: 4621
Joined: Tue Jul 05, 2005 9:38 pm
Location: Riverview, MI USA

Post by 5eraph » Fri Jun 16, 2006 9:36 pm

Does Mrs Peel's Opera addon behave the same way? It may be a problem you inherited from her addon.

I'm no expert at making addons, but this could be happening becuase you're using [DefaultInstall] and [Optional Components] together in your INF to accomplish the same thing. Delete one of those sections and see how it works.

Tip:
An INF that uses [DefaultInstall] can be installed in-place if it doesn't need to decompress its associated files during the install (it can be invoked manually by right-clicking the INF and selecting Install). An INF that uses [Optional Components] cannot be used this way. Both INF types will install when called during Windows setup.

Xable
Posts: 981
Joined: Tue May 03, 2005 6:38 pm
Contact:

Post by Xable » Fri Jun 16, 2006 10:49 pm

Sorry 5eraph your way off.

It`s sysoc being so damn fragile.. problem is a missing inf which is referanced in sysoc.inf, in this case Op9b8493.inf.

To get rid of this error either place Op9b8493.inf in your inf folder or open up sysoc.inf and remove this line;

Code: Select all

Op9b8493=ocgen.dll,OcEntry,Op9b8493.inf,HIDE,7

User avatar
5eraph
Site Admin
Posts: 4621
Joined: Tue Jul 05, 2005 9:38 pm
Location: Riverview, MI USA

Post by 5eraph » Fri Jun 16, 2006 11:14 pm

Thanks for clearing that up, Xable. I'm still learning, myself. :)

fearphage
Posts: 41
Joined: Mon Jun 12, 2006 1:58 pm
Location: Austin, TX

Post by fearphage » Fri Jun 16, 2006 11:17 pm

Thank you 5eraph and Xable

How should I fix this in the addon? Should I not delete the pnf file in the windows\inf folder on uninstall?

Edit: Until now, I was not aware this process added the files as windows components. Interesting...

fearphage
Posts: 41
Joined: Mon Jun 12, 2006 1:58 pm
Location: Austin, TX

Post by fearphage » Sun Jun 18, 2006 3:50 pm

I found the problem. cleanup=1 in my uninstall code removed the inf file after execution. Now its fine sinced i removed it.

Code: Select all

[UninstallOp9] 
DelFiles = op9.main,op9.clas,op9.defa,op9.prom,op9.plug,op9.skin,op9.styl,op9.imag,op9.user,op9.sdel 
DelDirs  = op9.DelDirs 
DelReg   = op9.AddReg 
;Cleanup  = 1 ;means delete the file after execution

Post Reply