- labels: --> General
- priority: 5 --> 4
Hi ,David is possible to add new tags and new simple functionality on installer to be able to make installation better and easy and more powerfully
for example :
to add tags such as :
<installadd
type="add_registry_value"
rootkey="HKEY_LOCAL_MACHINE" path="SOFTWARE\MySoftware\SoftwareInfo"
fieldname="Version"
fieldtype="REG_SZ"
fieldvalue="2.80.0.0"
/>
those mean this : to add new value into register
HKEY_LOCAL_MACHINE
when if not exist SOFTWARE installer will create it,if not exist MySoftware installer will create it,if not exist SoftwareInfo installer will create it and into this path it will create and variable with name Version which have fild type REG_SZ and into it will put value 2.80.0.0
it will work together with
<installedcheck
type="check_registry_value"
path="SOFTWARE\MySoftware\SoftwareInfo"
fieldname="Version"
fieldvalue="2.80.0.0
/>
for example depend did you want to add and to check it
or to add if missing or just to add without checking
2.Second tag to add is Enable and Disable Buttons
<enablebuttons
Install="true"
Advanded="false"
Close="false" />
which will be twice called
one before tag <component> which will initialize enable and disable buttons and after </component> to be able to know what to release for example
i dissable buttons advanced and close
<enablebuttons
Install="true"
Advanded="false"
Close="false" />
i start installation netframework
<component
os_filter_greater=""
os_filter_smaller=""
os_filter_lcid=""
type="cmd"
installcompletemessage=""
mustreboot="False"
description="Microsoft .NET Framework 2.0"
note="English - Standard - .NET Framework 2.0"
command=""#APPPATH\SupportFiles\dotnetfx.exe" /q:a /c:"install /qb""
>
<installedcheck
type="check_registry_value"
path="SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727"
fieldname="Install"
fieldvalue="1"
fieldtype="REG_DWORD"
comparison="match"
rootkey="HKEY_LOCAL_MACHINE"
/>
here i add info into register after installation of netframework successfully (this one is not depend on installedcheck tag because the both tags work idependet from each other so you with componet may add or may check or may remove register so all you need to specify )
<installadd
type="add_registry_value"
rootkey="HKEY_LOCAL_MACHINE" path="SOFTWARE\MySoftware\SoftwareInfo"
fieldname="Version"
fieldtype="REG_SZ"
fieldvalue="2.80.0.0"
/>
</component>
again here i disable now install and advanced and i allow just to close
<enablebuttons
Install="false"
Advanded="false"
Close="true"
/>
this will have this kind of functions
this is just an idea to complete and to administer better way installer
<installadd
type="add_registry_value"
rootkey="HKEY_LOCAL_MACHINE" path="SOFTWARE\MySoftware\SoftwareInfo"
fieldname="Version"
fieldtype="REG_SZ"
fieldvalue="2.80.0.0"
/>
will be work inside <component> if you want to show out in main form or
independent if you want to add register but not to display in main form