NanoCAD
From WPKG | Open Source Software Deployment and Distribution
Free cad software for view and drawing 2D .dwg files.
Registration
Basic nanoCAD is free, but you need to get license file at Official site. You can deploy license file and registry changes by any methods. For example, by WPKG:
<package
id="nanocadreg"
name="nanoCAD Registration"
revision="1"
reboot="false"
priority="0">
<variable name="PKG_SOURCE" value="%SOFTWARE%\Nanosoft\nanoCAD\license" />
<variable name="PKG_DESTINATION" value="C:\ProgramData\Nanosoft\RegWizard" />
<variable name="PKG_LICENSE_FILE" value="you_file.lic" />
<variable name="PKG_REGISTRY" value="nanocad_registration.reg" />
<check type="file" condition="exists" path="%PKG_DESTINATION%\Licenses\%PKG_LICENSE_FILE%" />
<install cmd='%COMSPEC% /C if not exist "%PKG_DESTINATION%\Licenses" mkdir "%PKG_DESTINATION%\Licenses"'>
<exit code="any"/>
</install>
<install cmd='%COMSPEC% /C copy /Y /V "%PKG_SOURCE%\%PKG_LICENSE_FILE%" "%PKG_DESTINATION%\Licenses\%PKG_LICENSE_FILE%"'>
<exit code="any"/>
</install>
<install cmd='%COMSPEC% /C regedit /s "%PKG_SOURCE%\%PKG_REGISTRY%"' />
<upgrade include='remove' />
<upgrade include='install' />
<remove cmd='%COMSPEC% /C reg delete "HKLM\SOFTWARE\FlexlM License Manager" /f' />
<remove cmd='%COMSPEC% /C rmdir /S /Q "%PKG_DESTINATION%"' />
</package>
nanocad_registration.reg:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\FLEXlm License Manager]
"NANOSOFT_LICENSE_FILE"="C:\\ProgramData\\Nanosoft\\RegWizard\\Licenses"
nanoCAD 5.1
<package
id="nanocad51"
name="nanoCAD 5.1 Free"
revision="%PKG_VERSION%"
reboot="false"
priority="0">
<depends package-id="nanocadreg" />
<variable name="PKG_SHORT_VERSION" value="5.1" />
<variable name="PKG_VERSION" value="%PKG_SHORT_VERSION%.2524.2017" />
<variable name="PKG_SOURCE" value="%SOFTWARE%\Nanosoft\nanoCAD\%PKG_SHORT_VERSION%" />
<variable name="PKG_NAME" value="setup.exe" />
<variable name="PKG_INSTALL_SWITCH" value="/i /quiet" />
<variable name="PKG_REMOVE_SWITCH" value="/qn" />
<variable name="PKG_MSI_CODE" value="{B01761B9-B734-4665-9F8F-49BE73A4AF37}" />
<check type="uninstall" condition="versiongreaterorequal" path="nanoCAD %PKG_SHORT_VERSION%" value="%PKG_VERSION%" />
<install cmd='"%PKG_SOURCE%\%PKG_NAME%" %PKG_INSTALL_SWITCH% USERNAME="User" COMPANYNAME="You company name"' />
<upgrade include='remove' />
<upgrade include='install' />
<remove cmd='msiexec /X %PKG_MSI_CODE% %PKG_REMOVE_SWITCH%' />
</package>
nanoCAD 3.5
<package
id="nanocad35"
name="nanoCAD 3.5 Free"
revision="%PKG_VERSION%"
reboot="false"
priority="0">
<depends package-id="nanocadreg" />
<variable name="PKG_SHORT_VERSION" value="3.5" />
<variable name="PKG_VERSION" value="%PKG_SHORT_VERSION%.1857.1449" />
<variable name="PKG_SOURCE" value="%SOFTWARE%\Nanosoft\nanoCAD\%PKG_SHORT_VERSION%" />
<variable name="PKG_NAME" value="setup.exe" />
<variable name="PKG_INSTALL_SWITCH" value="/i /quiet" />
<variable name="PKG_REMOVE_SWITCH" value="/qn" />
<variable name="PKG_MSI_CODE" value="{60B7574C-9506-418B-935D-9C9562D82B6B}" />
<check type="uninstall" condition="versiongreaterorequal" path="nanoCAD %PKG_SHORT_VERSION%" value="%PKG_VERSION%" />
<install cmd='"%PKG_SOURCE%\%PKG_NAME%" %PKG_INSTALL_SWITCH% USERNAME="User" COMPANYNAME="You company name"' />
<upgrade include='remove' />
<upgrade include='install' />
<remove cmd='msiexec /X %PKG_MSI_CODE% %PKG_REMOVE_SWITCH%' />
</package>