Нужно сделать автоустановщик 3ds.max 2010. В моем случае 32 bit версия. И желательно выкинуть DirectX9 (20,1мб), .Net Flamework 3 (231мб), и Microsoft Visual C++ 2005 и 2008 (6,61мб).
Я так понимаю, достаточно убрать лишние строки в файле setup.ini, и папки с ненужным софтом?
Все это будет ставится отдельно из WPI, и копии программ в установщике мне не нужны. В таком случае, установщик должен получиться примерно в 500мб (убрав лишние 257мб файлов).
Планируется ставить программу из WPI, там-же будет выбор нужных .Net Flamework, отдельно, учитывая зависимости и порядок установки в WPI.
При установке отдельно, не из WPI, нужно чтобы проверялась версия DirectX и наличие установленного .Net Flamework и Microsoft Visual C++. Если чего-то нет, то не выполнять установку программы с указанием причины.
Надеюсь на вашу помощь в создании установщика, или готовый вариант.
setup.ini
читать дальше »
Код:
[SETUP]
SETUP_ICON= SetupRes\max.ico
SETUP_CODE={A7100F83-91BE-47d0-8B0C-F457428976F4}
TITLE=SetupRes2.DLL;1000
LOG=%tmp%\3ds Max 2010 Setup.log
EVALMSI=SetupRes\eval.msi
PRIMARY_MSI=main\32bit\3dsMax2010_32-bit.msi
# Remove the prompt that appears when users do not select any configuration options before pressing 'Install'
PROMPT_FOR_CONFIG=NO
# Leave blank according to instructions to make 32/64 work on 64 bit OS
x86_IMAGE_PATH=
SETUP_HIGHLIGHT_COLOR=#118888
DOCUMENT_LINK=SetupRes\InfoLink\Documentation.html
SUPPORT_LINK=SetupRes\InfoLink\Support.html
SUMMARY_FUNC=LoadSummary_Max
SUMMARY_SOURCE=CustomProductUI.dll
README_FILE=SetupRes\InfoLink\Documentation.html
#SYSUPDATE=MSI
#==================== Platform Requirement
OSMAJVER=5
OSMINVER=1
SPMAJVER=2
#==================== Install Execute & UI Sequence
#Renoir sequences
EXE_SEQUENCE=MAX;BACKBURNER
INSTALL_SEQUENCE=MAX;BACKBURNER
UI_SEQUENCE=LaunchDlg;BeginDeploymentDlg;ProductSelectionDlg;LicenseDlg;UserInformationDlg;DeploymentSettingsDlg;ConfirmSetupDlg;MAX;BACKBURNER;FullProgressDlg;InstallCompleteDlg;DeploymentCompleteDlg;DeploymentFailedDlg
#==================== UI
TOPBANNER=SetupRes\AcadSetupTopBanner.bmp
SETUP_LOGO=SetupRes\3dsMax_install_logo.gif
ADSK_LOGO=SetupRes\adsklogo.gif
UI_MODE=
#==================== AdLM ProdKey Info
ADLM_CONFIG_FILE=3dsMaxConfig.pit
ADLM_PIT_DLL=adlmPIT.dll
ADLM_VERSION=2010.0.0.F
#==================== Deployment Info
DEPLOYMENT_NAME=
CLIENT_LOGGING=YES
EXTRA_FILES=max;*.manifest:*.dll:*.exe:*.pit:main\32bit\*.pit:eula:msi:setupres:support\FBX:support\NLSDL
#==================== Global MSI Properties
[GLOBAL_MSI_PROPERTIES]
#==================== Common UIs: install mode
[LaunchDlg]
UI_CREATOR=LaunchDialog
UI_SOURCE=SetupAcadUi.dll
[ProductSelectionDlg]
UI_CREATOR=ProductSelectionDialog
UI_SOURCE=SetupAcadUi.dll
UI_INFO_LINK=SetupRes\InfoLink\Select_the_Products_to_Install_%s.xml.html
[LicenseDlg]
UI_CREATOR=LicenseDialog
UI_SOURCE=SetupAcadUi.dll
[UserInformationDlg]
UI_CREATOR=UserInfoDialog
UI_SOURCE=SetupAcadUi.dll
UI_CONDITION=ADSK_LAUNCH_MODE<>"TOOLS"
UI_INFO_LINK=SetupRes\InfoLink\User_Information_Page.xml.html
[ConfirmSetupDlg]
UI_CREATOR=ConfirmSetupDialog
UI_SOURCE=SetupAcadUi.dll
[SelectPreferencesDlg]
UI_CREATOR=PreferencesDialog
UI_SOURCE=SetupAcadUi.dll
UI_CONDITION=ADSK_LAUNCH_MODE="STANDALONE"
UI_INFO_LINK=SetupRes\InfoLink\Select_Preferences_Page.xml.html
[LicenseTypeDlg]
UI_CREATOR=LicenseTypeDialog
UI_SOURCE=SetupAcadUi.dll
UI_INFO_LINK=SetupRes\InfoLink\License_Type_%s.xml.html
[InstallTypeDlg]
UI_CREATOR=InstallTypeDialog
UI_SOURCE=SetupAcadUi.dll
UI_INFO_LINK=SetupRes\InfoLink\Installation_Type_Page_ACAD.xml.html
[FullProgressDlg]
UI_CREATOR=FullProgressDialog
UI_SOURCE=SetupUi.dll
UI_INFO_LINK=SetupRes\InfoLink\Full_Progress_Page.xml.html
UI_INFOTAINMENT_PATH=SetupRes\Infotainment\MAX
UI_INFOTAINMENT_ELAPSE=30000
[InstallCompleteDlg]
UI_CREATOR=InstallCompleteDialog
UI_SOURCE=SetupAcadUi.dll
UI_CONDITION=ADSK_LAUNCH_MODE<>"DEPLOYMENT"
UI_INFO_LINK=SetupRes\InfoLink\Installation_Complete_Page.xml.html
#==================== Common UIs: deploy mode
[BeginDeploymentDlg]
UI_CREATOR=BeginDeploymentDialog
UI_SOURCE=DeployUi.dll
UI_CONDITION=ADSK_LAUNCH_MODE="DEPLOYMENT"
UI_INFO_LINK=SetupRes\InfoLink\Begin_Deployment_Page.xml.html
[DeploymentSettingsDlg]
UI_CREATOR=DeploymentSettingsDialog
UI_SOURCE=DeployUi.dll
UI_CONDITION=ADSK_LAUNCH_MODE="DEPLOYMENT"
UI_INFO_LINK=SetupRes\InfoLink\Write_to_Log_Page.xml.html
[DeploymentCompleteDlg]
UI_CREATOR=DeploymentCompleteDialog
UI_SOURCE=DeployUi.dll
UI_CONDITION=ADSK_LAUNCH_MODE="DEPLOYMENT" AND ADSK_SETUP_SUCCEEDED
UI_INFO_LINK=SetupRes\InfoLink\Deployment_Complete_Page.xml.html
[DeploymentFailedDlg]
UI_CREATOR=DeploymentFailedDialog
UI_SOURCE=DeployUi.dll
UI_CONDITION=ADSK_LAUNCH_MODE="DEPLOYMENT" AND NOT ADSK_SETUP_SUCCEEDED
UI_INFO_LINK=SetupRes\InfoLink\Deployment_Complete_Page.xml.html
#==================== Common UIs: maintenance mode
# Must keep these blocks for ADR
[MaintenanceDlg]
UI_CREATOR=MaintenanceDialog
UI_SOURCE=SetupAcadUi.dll
[AddRemoveFeaturesDlg]
UI_CREATOR=AddRemoveFeaturesDialog
UI_SOURCE=SetupAcadUi.dll
UI_CONDITION=NOT REINSTALL="ALL" AND NOT REMOVE="ALL"
UI_INFO_LINK=SetupRes\InfoLink\Add_Remove_Features_Page.xml.html
[RepairDlg]
UI_CREATOR=RepairDialog
UI_SOURCE=SetupAcadUi.dll
UI_CONDITION=REINSTALL="ALL"
UI_INFO_LINK=SetupRes\InfoLink\Repair_Product_Page.xml.html
[MaintVerifyReadyDlg]
UI_CREATOR=MaintVerifyReadyDialog
UI_SOURCE=SetupAcadUi.dll
UI_INFO_LINK=SetupRes\InfoLink\%s_Product_Page.xml.html
[MaintCompleteDlg]
UI_CREATOR=MaintCompleteDialog
UI_SOURCE=SetupAcadUi.dll
UI_CONDITION=ADSK_SETUP_SUCCEEDED
UI_INFO_LINK=SetupRes\InfoLink\Update_Complete_Page.xml.html
[MaintFailedDlg]
UI_CREATOR=MaintFailedDialog
UI_SOURCE=SetupAcadUi.dll
UI_CONDITION=NOT ADSK_SETUP_SUCCEEDED
UI_INFO_LINK=SetupRes\InfoLink\Maintenance_Failed_page.xml.html
#==================== Max Prerequisite
[OS]
PRODUCT_NAME=Windows
PRODUCT_MESSAGE=SetupRes.dll;210
VC_FUNC=AcadOsVerCheck
VC_SOURCE=SetupUi.dll
VC_PARAM=5.0.0;3.0
VC_DESCRIPTION=Detecting Windows
[IE]
PRODUCT_NAME=Internet Explorer
PRODUCT_MESSAGE=SetupRes.dll;209
VC_FUNC=IeVerCheck
VC_SOURCE=SetupUi.dll
VC_PARAM=6.0.2800
VC_DESCRIPTION=Detecting Internet Explorer
[SSE2]
PRODUCT_NAME=SSE2 Support Check
PRODUCT_MESSAGE=SSE2 Support Check
VC_FUNC=CheckForSSE2Support
VC_SOURCE=AcSetup.dll
VC_DESCRIPTION=SSE2 Support Check
[MSI]
PRODUCT_NAME=MSI 3.1 Runtime
EXE_PATH=msi\WindowsInstaller-KB893803-v2-x86.exe
EXE64_PATH=msi\WindowsXP-KB898715-x64-enu.exe
EXE_PARAM=/quiet /norestart
ROLLBACKABLE=YES
VC_FUNC=MsiVerCheck
VC_SOURCE=SetupUi.dll
VC_PARAM=3.1
VC_DESCRIPTION=Detecting MSI 3.1
DISKCOST=200000
[DOTNET3]
PLATFORM=ALL
PRODUCT_NAME=.NET Framework Runtime 3.5 SP1 (This may take several minutes)
EXE_PATH=support\dotnetfx\dotnetfx35.exe
EXE_PARAM=/q /lang:ENU /norestart
VC_FUNC=DotnetVerCheck
VC_SOURCE=SetupUi.dll
VC_PARAM=3.5.30729.1
VC_DESCRIPTION=Detecting .NET Runtime 3.5
DISKCOST=80000000
IGNORE_FAILURE=YES
[DIRECTX]
PRODUCT_NAME=DirectX® Runtime Update
EXE_PATH=support\DirectX\DXSETUP.exe
EXE_PARAM=/silent
IGNORE_FAILURE=YES
[MSXML]
PLATFORM=NATIVE
PRODUCT_NAME=MSXML 6
EXE_PATH=support\msxml\msxml6.msi
VC_FUNC=MsxmlVerCheck
VC_PARAM=6.0
VC_SOURCE=SetupUi.dll
IGNORE_FAILURE=YES
[VCREDIST2005X86]
PLATFORM=ALL
PRODUCT_NAME=Microsoft Visual C++ 2005 Redistributable (x86)
EXE_PATH=support\VCRedist\2005\vcredist_x86.exe
EXE_PARAM=/q:a /T:%windir%\temp /c:"VCREDI~3.EXE /q:a /c:""msiexec /i vcredist.msi /qn /l*v %temp%\vcredist_x86_2005.log"" "
VC_FUNC=VCx86RedisCheck
VC_PARAM={7299052B-02A4-4627-81F2-1818DA5D550D}
VC_SOURCE=SetupUi.dll
[VCREDISTX86]
PLATFORM=ALL
PRODUCT_NAME=Microsoft Visual C++ 2008 SP1 Redistributable (x86)
EXE_PATH=support\VCRedist\2008\vcredist_x86.exe
EXE_PARAM=/q
VC_FUNC=VCx86RedisCheck
VC_SOURCE=SetupUi.dll
VC_PARAM={9A25302D-30C0-39D9-BD6F-21E6EC160475}
[NLSDL]
PLATFORM=NATIVE
PRODUCT_NAME=Microsoft NLS Downlevel APIs
EXE_PATH=support\NLSDL\nlsdl.x86.exe
EXE64_PATH=support\NLSDL\nlsdl.amd64.exe
EXE_PARAM=/quiet /norestart
DISKCOST=200000
IGNORE_FAILURE=YES
#==================== Max
[MAX]
PLATFORM=ALL
PREREQUISITE=OS;IE;SSE2;VCREDIST2005X86;VCREDISTX86;MSI;DOTNET3;DIRECTX;MSXML;BACKBURNER
PRODUCT_NAME=Autodesk® 3ds Max 2010 32-bit
PRODUCT_ICON=max.ico
EULA_PATH=eula
COMPRESSED=YES
LOG=%tmp%\Max32Install.log
EXE_PATH=main\32bit\3dsMax2010_32-bit.msi
EXE_PARAM=
ALLOW_ADD_REMOVE=NO
ACTION=INSTALL
REMOVE_PATH=
ROLLBACKABLE=YES
USE_EXTERNAL_UI=YES
USE_MEDIA=NO
UI_SEQUENCE=LicenseTypePage;InstallTypePage;MentalRayPage;AddAdditionalFilesPage;ServicePackPageForDeploy;ServicePackPageForInstall;ConfigCompletePage
SUMMARY_FUNC=LoadSummary_Max
SUMMARY_SOURCE=CustomProductUI.dll
README_FILE=SetupRes\Docs\3ds_Max_readme.rtf;SetupRes2.dll;1001
LAUNCH_EXE=3dsmax.exe
ADMIN_INSTALL=YES
EXTRA_FILES=max;*.ico
#==================== Backburner
[BACKBURNER]
PRODUCT_NAME=Autodesk Backburner 2008.1
PRODUCT_ICON=max.ico
LOG=%tmp%\Backburner Install.log
EXE_PATH=support\backburner\backburner.msi
EXE_PARAM=
ALLOW_ADD_REMOVE=NO
ACTION=INSTALL
UI_SEQUENCE=InstallTypePage3;ConfigCompletePage
SUMMARY_FUNC=LoadSummary_Simple
SUMMARY_SOURCE=SetupAcadUi.dll
#==================== Max UI Sequence
[LicenseTypePage]
UI_CREATOR=LicenseTypePage
UI_SOURCE=SetupAcadUi.dll
UI_INFO_LINK=SetupRes\InfoLink\License_Type_%s.xml.html
[InstallTypePage]
UI_CREATOR=InstallTypePage
UI_SOURCE=SetupAcadUi.dll
UI_INFO_LINK=SetupRes\InfoLink\Installation_Type_Page_DWFV.xml.html
[MentalRayPage]
UI_CREATOR=ProductSettingsPage
UI_SOURCE=CustomProductUI.dll
UI_INFO_LINK=SetupRes\InfoLink\Installation_Type_Page_Satellite.xml.html
#==================== Max Deploy UI Sequence
[AddAdditionalFilesPage]
UI_CREATOR=AddAdditionalFilesPage
UI_SOURCE=DeployUi.dll
UI_CONDITION=ADSK_LAUNCH_MODE="DEPLOYMENT"
UI_INFO_LINK=SetupRes\InfoLink\Additional_Files_Page.xml.html
[ServicePackPageForDeploy]
UI_CREATOR=ServicePackPage
UI_SOURCE=DeployUi.dll
UI_CONDITION=ADSK_LAUNCH_MODE="DEPLOYMENT"
UI_INFO_LINK=SetupRes\InfoLink\Deployment_Include_Service_Packs_Page.xml.html
[ServicePackPageForInstall]
UI_CREATOR=ServicePackPage
UI_SOURCE=DeployUi.dll
UI_CONDITION=ADSK_RUNNING_FROM_ADMIN="FALSE" AND NOT ADSK_LAUNCH_MODE="DEPLOYMENT"
UI_INFO_LINK=SetupRes\InfoLink\Standalone_Include_Service_Packs_Page.xml.html
[ConfigCompletePage]
UI_CREATOR=ConfigCompletePage
UI_SOURCE=SetupAcadUi.dll
UI_INFO_LINK=SetupRes\InfoLink\Deployment_Configure_Complete_Page.xml.html
[InstallTypePage3]
UI_CREATOR=InstallTypePage
UI_SOURCE=SetupAcadUi.dll
UI_INFO_LINK=SetupRes\InfoLink\Installation_Type_Page_DWFV.xml.html