Topic: [SOLVED BUG #323] When overwriting during export of settings, the sett

Hi folks!

I have (possibly) discovered a bug in the routine called when exporting settings from BASE 7.01.1, here goes the story:

The other day I was a victim of my own incompetence (regarding ROE-method of the finisher), in short I managed to call the finisher after one of my own cleanup scripts tongue (ref. this post) *embarrassed

Anyhow, this led to me changing my settings for ROE and exporting new custom settings files. What I observed later was that the integration was performed with the old "Custom start ID" in ROE. After some minor investigations I have found that exporting settings, overwriting an old settings file leads to duplicate entries in the settings file (newest settings towards the bottom). Furthermore I have found that the BASE uses the first settings it finds in the file..

I will try to give instructions to replicate this bug:
1. Paste DPs_BASE.ini settings from the bottom of this post into your own DPs_BASE.ini (I don't know if this bug is caused by my exact pattern of settings or if it's more generic, so replicating youre better of using my settings)
2. Start Base, observe that "Custom start ID" for ROE method is set to "1"
3. Export your settings to a different file than DPs_BASE.ini, for example 1.ini
4. Now change your "custom start ID" in BASE to "2" and export the settings saying yes to overwrite the firsty one (1.ini or whatever)
5. Quit BASE, open your custom ini and realize that the file was not overwritten, the new settings was just added at the bottom of the file(!)

This may of course be some kind of feature in the software that I'm not aware of but normally, when I write programs, and they ask to overwrite they do overwrite tongue

DPs_BASE.ini

[General]
; preferred language
prefLang	= "English"
; yes/no, enable or disable the wizard-style buttons, if not specified: yes
wizardButtons	= "yes"
; yes/no, enable or disable the GUI, if not specified: yes
GUI		= "yes"


[Settings]
; disc/bartpe/multibootDisc
instPlatform	= "disc"
; trailing backslash is allowed, but not necessary
location	= "I:\Unatt\_WinXp\DVD\ENGLISH\XPPRO\PRO1"
; none/all/select, if select, specify them below, if not specified: all
DriverPacks	= "select"
; 1/2, method to install the DriverPacks, if not specified: 2
DPsMethod	= "2"
; GUIRunOnce/RunOnceEx/custom, if not specified: GUIRunOnce
finisherMethod	= "RunOnceEx"


; you should only add this section if you've set [Settings]\finishMethod to "RunOnceEx"
[RunOnceExSettings]
; custom/default, if not specified: default
startID		= "custom"
; anything you wish ...
customStartID	= "002"


; this section is optional!
[OptionalSettings]
; none/all/select/paths/patterns, enable or disable Keep The Drivers (KTD) , if not specified: none
KTD		= "patterns"
; <path>, to specify a custom KTD cache location, if not specified: default (%SystemRoot%\DriverPacks)
KTDlocation	= "%SystemRoot%\DriverPacks"
; yes/no, enable or disable QuickStream Cache (QSC), if not specified: yes
QSC		= "yes"


; you should only add this section if you've set [Settings]\DriverPacks to "select"
[SelectDriverPacks]
DP_Chipset	= "yes"
DP_CPU		= "yes"
DP_Graphics_A	= "yes"
DP_Graphics_B	= "yes"
DP_LAN		= "yes"
DP_MassStorage	= "yes"
DP_Sound_A	= "yes"
DP_Sound_B	= "yes"
DP_WLAN		= "yes"
DP_MassStorage_textmode = "yes"


; you should only add this section if you've set [OptionalSettings]\KTD to "patterns"
[PatternsForKTD]
KTD_patterns	= "1394\;DOT4PRT\;FlashMedia\;HID\;LPTENUM\;Monitor\;PCMCIA\;SERENUM\;USB\;USBPRINT\"


; this section is optional!
[OptionalSettingsOther]
; CCC/CCP, use ATI Catalyst Control Center or ATI Catalyst Control Panel (only relevant when slipstreaming DriverPack Graphics A)
ATI_cpl		= "CCP"

1.ini (the result)

[General]
; preferred language
prefLang	= "English"
; yes/no, enable or disable the wizard-style buttons, if not specified: yes
wizardButtons	= "yes"
; yes/no, enable or disable the GUI, if not specified: yes
GUI		= "yes"


[Settings]
; disc/bartpe/multibootDisc
instPlatform	= "disc"
; trailing backslash is allowed, but not necessary
location	= "I:\Unatt\_WinXp\DVD\ENGLISH\XPPRO\PRO1"
; none/all/select, if select, specify them below, if not specified: all
DriverPacks	= "select"
; 1/2, method to install the DriverPacks, if not specified: 2
DPsMethod	= "2"
; GUIRunOnce/RunOnceEx/custom, if not specified: GUIRunOnce
finisherMethod	= "RunOnceEx"


; you should only add this section if you've set [Settings]\finishMethod to "RunOnceEx"
[RunOnceExSettings]
; custom/default, if not specified: default
startID		= "custom"
; anything you wish ...
customStartID	= "001"


; this section is optional!
[OptionalSettings]
; none/all/select/paths/patterns, enable or disable Keep The Drivers (KTD) , if not specified: none
KTD		= "patterns"
; <path>, to specify a custom KTD cache location, if not specified: default (%SystemRoot%\DriverPacks)
KTDlocation	= "%SystemRoot%\DriverPacks"
; yes/no, enable or disable QuickStream Cache (QSC), if not specified: yes
QSC		= "yes"


; you should only add this section if you've set [Settings]\DriverPacks to "select"
[SelectDriverPacks]
DP_Chipset	= "yes"
DP_CPU		= "yes"
DP_Graphics_A	= "yes"
DP_Graphics_B	= "yes"
DP_LAN		= "yes"
DP_MassStorage	= "yes"
DP_Sound_A	= "yes"
DP_Sound_B	= "yes"
DP_WLAN		= "yes"
DP_MassStorage_textmode = "yes"


; you should only add this section if you've set [OptionalSettings]\KTD to "patterns"
[PatternsForKTD]
KTD_patterns	= "1394\;DOT4PRT\;FlashMedia\;HID\;LPTENUM\;Monitor\;PCMCIA\;SERENUM\;USB\;USBPRINT\"


; this section is optional!
[OptionalSettingsOther]
; CCC/CCP, use ATI Catalyst Control Center or ATI Catalyst Control Panel (only relevant when slipstreaming DriverPack Graphics A)
ATI_cpl		= "CCP"
[General]
; preferred language
prefLang	= "English"
; yes/no, enable or disable the wizard-style buttons, if not specified: yes
wizardButtons	= "yes"
; yes/no, enable or disable the GUI, if not specified: yes
GUI		= "yes"


[Settings]
; disc/bartpe/multibootDisc
instPlatform	= "disc"
; trailing backslash is allowed, but not necessary
location	= "I:\Unatt\_WinXp\DVD\ENGLISH\XPPRO\PRO1"
; none/all/select, if select, specify them below, if not specified: all
DriverPacks	= "select"
; 1/2, method to install the DriverPacks, if not specified: 2
DPsMethod	= "2"
; GUIRunOnce/RunOnceEx/custom, if not specified: GUIRunOnce
finisherMethod	= "RunOnceEx"


; you should only add this section if you've set [Settings]\finishMethod to "RunOnceEx"
[RunOnceExSettings]
; custom/default, if not specified: default
startID		= "custom"
; anything you wish ...
customStartID	= "002"


; this section is optional!
[OptionalSettings]
; none/all/select/paths/patterns, enable or disable Keep The Drivers (KTD) , if not specified: none
KTD		= "patterns"
; <path>, to specify a custom KTD cache location, if not specified: default (%SystemRoot%\DriverPacks)
KTDlocation	= "%SystemRoot%\DriverPacks"
; yes/no, enable or disable QuickStream Cache (QSC), if not specified: yes
QSC		= "yes"


; you should only add this section if you've set [Settings]\DriverPacks to "select"
[SelectDriverPacks]
DP_Chipset	= "yes"
DP_CPU		= "yes"
DP_Graphics_A	= "yes"
DP_Graphics_B	= "yes"
DP_LAN		= "yes"
DP_MassStorage	= "yes"
DP_Sound_A	= "yes"
DP_Sound_B	= "yes"
DP_WLAN		= "yes"
DP_MassStorage_textmode = "yes"


; you should only add this section if you've set [OptionalSettings]\KTD to "patterns"
[PatternsForKTD]
KTD_patterns	= "1394\;DOT4PRT\;FlashMedia\;HID\;LPTENUM\;Monitor\;PCMCIA\;SERENUM\;USB\;USBPRINT\"


; this section is optional!
[OptionalSettingsOther]
; CCC/CCP, use ATI Catalyst Control Center or ATI Catalyst Control Panel (only relevant when slipstreaming DriverPack Graphics A)
ATI_cpl		= "CCP"

EDIT:
I have now confirmed this bug(?) in BASE 7.01.2 also.
(by the way thx for the Mass storage update, will try it this weekend have been waiting for it big_smile )

Last edited by Pedro80 (2007-01-13 23:57:28)

Greets from:
Leif_, Norway

Re: [SOLVED BUG #323] When overwriting during export of settings, the sett

Haha nice find smile

Will fix this ASAP.

EDIT: submitted to the bugtracker: http://bugtracker.driverpacks.net/view.php?id=323, and solved!

Last edited by Bâshrat the Sneaky (2007-01-23 07:49:06)

Founder of DriverPacks.net — wimleers.com