1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: windowscustomaction_ooo.scp,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
33 WindowsCustomAction gid_Customaction_RenamePrgFolder
34 Name = "RenamePrgFolder";
36 Source = "shlxtmsi.dll";
37 Target = "RenamePrgFolder";
39 Assignment1 = ("InstallExecuteSequence", "VersionNT >= 600 And OLDPRODUCTSSAMEMAJOR And Not REMOVE=\"ALL\" And Not PATCH", "ValidateProductID");
42 WindowsCustomAction gid_Customaction_RemovePrgFolder
43 Name = "RemovePrgFolder";
45 Source = "shlxtmsi.dll";
46 Target = "RemovePrgFolder";
48 Assignment1 = ("InstallExecuteSequence", "VersionNT >= 600 And OLDPRODUCTSSAMEMAJOR And Not REMOVE=\"ALL\" And Not PATCH", "end");
51 WindowsCustomAction gid_Customaction_Regallmsdocdll
52 Name = "Regallmsdocdll";
54 Source = "reg4allmsdoc.dll";
55 Target = "FindRegisteredExtensions";
57 Assignment1 = ("InstallExecuteSequence", "Not REMOVE=\"ALL\" And Not PATCH", "CostFinalize");
60 WindowsCustomAction gid_Customaction_Regactivexdll1
61 Name = "Regactivexdll1";
63 Source = "regactivex.dll";
64 Target = "InstallActiveXControl";
66 Assignment1 = ("InstallExecuteSequence", "(\&FEATURETEMPLATE=3 Or (\!FEATURETEMPLATE=3 And \&FEATURETEMPLATE=-1)) And Not PATCH", "end");
69 WindowsCustomAction gid_Customaction_Regactivexdll2
70 Name = "Regactivexdll2";
72 Source = "regactivex.dll";
73 Target = "DeinstallActiveXControl";
75 Assignment1 = ("InstallExecuteSequence", "\&FEATURETEMPLATE=2 And \!FEATURETEMPLATE=3 And Not PATCH", "RemoveExistingProducts");
78 WindowsCustomAction gid_Customaction_Jfregcadll1
81 Source = "jfregca.dll";
82 Target = "install_jf";
84 Assignment1 = ("InstallExecuteSequence", "\&FEATURETEMPLATE=3 And Not PATCH", "end");
87 WindowsCustomAction gid_Customaction_Jfregcadll2
90 Source = "jfregca.dll";
91 Target = "uninstall_jf";
93 Assignment1 = ("InstallExecuteSequence", "\&FEATURETEMPLATE=2 And \!FEATURETEMPLATE=3 And Not PATCH", "end");
96 WindowsCustomAction gid_Customaction_sdqsmsidll
99 Source = "sdqsmsi.dll";
100 Target = "ShutDownQuickstarter";
102 Assignment1 = ("InstallExecuteSequence", "", "IsOfficeRunning");
105 WindowsCustomAction gid_Customaction_qslnkmsidll
106 Name = "qslnkmsidll";
108 Source = "qslnkmsi.dll";
109 Target = "RemoveQuickstarterLink";
111 Assignment1 = ("InstallExecuteSequence", "REMOVE=\"ALL\" And Not PATCH", "sdqsmsidll");
114 WindowsCustomAction gid_Customaction_Shellextensionsdll1
115 Name = "Shellextensionsdll1";
117 Source = "shlxtmsi.dll";
118 Target = "InstallExecSequenceEntry";
120 Assignment1 = ("InstallExecuteSequence", "\&FEATURETEMPLATE=3 And Not PATCH", "end");
123 WindowsCustomAction gid_Customaction_Shellextensionsdll2
124 Name = "Shellextensionsdll2";
126 Source = "shlxtmsi.dll";
127 Target = "DeinstallExecSequenceEntry";
129 Assignment1 = ("InstallExecuteSequence", "\&FEATURETEMPLATE=2 And \!FEATURETEMPLATE=3 And Not PATCH", "end");
132 WindowsCustomAction gid_Customaction_Instooofiltmsidll2
133 Name = "Instooofiltmsidll";
135 Source = "instooofiltmsi.dll";
136 Target = "RestartIndexingService";
138 Assignment1 = ("InstallExecuteSequence", "Not REMOVE=\"ALL\" And Not PATCH", "end");
141 WindowsCustomAction gid_Customaction_Shellextensionsdll3
142 Name = "Shellextensionsdll3";
144 Source = "shlxtmsi.dll";
145 Target = "InstallStartmenuFolderIcon";
147 Assignment1 = ("InstallExecuteSequence", "Not REMOVE=\"ALL\" And Not PATCH", "end");
150 WindowsCustomAction gid_Customaction_Shellextensionsdll4
151 Name = "Shellextensionsdll4";
153 Source = "shlxtmsi.dll";
154 Target = "DeinstallStartmenuFolderIcon";
156 Assignment1 = ("InstallExecuteSequence", "REMOVE=\"ALL\" And Not PATCH", "MigrateFeatureStates");
159 WindowsCustomAction gid_Customaction_Shellextensionsdll5
160 Name = "Shellextensionsdll5";
162 Source = "shlxtmsi.dll";
163 Target = "SetProductInstallMode";
165 Assignment1 = ("InstallExecuteSequence", "Not REMOVE=\"ALL\" And Not PATCH", "FindRelatedProducts");
166 Assignment2 = ("InstallUISequence", "Not REMOVE=\"ALL\" And Not PATCH", "FindRelatedProducts");
169 WindowsCustomAction gid_Customaction_Shellextensionsdll6
170 Name = "Shellextensionsdll6";
172 Source = "shlxtmsi.dll";
173 Target = "RebuildShellIconCache";
175 Assignment1 = ("InstallExecuteSequence", "Not PATCH", "end");
178 WindowsCustomAction gid_Customaction_Shellextensionsdll7
179 Name = "Shellextensionsdll7";
181 Source = "shlxtmsi.dll";
182 Target = "ExecutePostUninstallScript";
184 Assignment1 = ("InstallExecuteSequence", "REMOVE=\"ALL\" And Not PATCH", "InstallValidate");
187 WindowsCustomAction gid_Customaction_Register_Extensions
188 Name = "RegisterExtensions";
190 Source = "shlxtmsi.dll";
191 Target = "RegisterExtensions";
193 Assignment1 = ("InstallExecuteSequence", "Not REMOVE=\"ALL\"", "end");
194 Assignment2 = ("AdminExecuteSequence", "Not REMOVE=\"ALL\"", "end");
197 WindowsCustomAction gid_Customaction_Set_Admininstall
198 Name = "SetAdminInstallProperty";
200 Source = "shlxtmsi.dll";
201 Target = "SetAdminInstallProperty";
203 Assignment1 = ("AdminExecuteSequence", "", "InstallInitialize");
207 WindowsCustomAction gid_Customaction_Remove_Extensions
208 Name = "RemoveExtensions";
210 Source = "shlxtmsi.dll";
211 Target = "RemoveExtensions";
213 Assignment1 = ("InstallExecuteSequence", "REMOVE=\"ALL\"", "Shellextensionsdll4");
217 WindowsCustomAction gid_Customaction_Deregister_Extensions
218 Name = "DeregisterExtensions";
220 Source = "shlxtmsi.dll";
221 Target = "DeregisterExtensions";
223 // Assignment1 = ("InstallExecuteSequence", "Not REMOVE=\"\"", "gid_Customaction_Remove_Extensions");
224 Assignment1 = ("InstallExecuteSequence", "Not REMOVE=\"\"", "behind_IsolateComponents");
227 WindowsCustomAction gid_Customaction_Check_Install_Directory
228 Name = "CheckInstallDirectory";
230 Source = "shlxtmsi.dll";
231 Target = "CheckInstallDirectory";
233 Assignment1 = ("InstallExecuteSequence", "Not Installed", "CheckVersions");
234 Assignment2 = ("ControlEvent", "SetupType", "Next", "DoAction", "CheckInstallDirectory", "_IsSetupTypeMin = \"Typical\" And Not Installed", "2");
235 Assignment3 = ("ControlEvent", "CustomSetup", "Next", "DoAction", "CheckInstallDirectory", "Not Installed", "2");
238 WindowsCustomAction gid_Customaction_Dotnetcheck
239 Name = "DotNetCheck";
241 Source = "shlxtmsi.dll";
242 Target = "DotNetCheck";
244 Assignment1 = ("InstallExecuteSequence", "Not REMOVE=\"ALL\"", "LaunchConditions");
245 Assignment2 = ("InstallUISequence", "Not REMOVE=\"ALL\"", "LaunchConditions");
248 WindowsCustomAction gid_Customaction_CopyEditionData
249 Name = "CopyEditionData";
251 Source = "shlxtmsi.dll";
252 Target = "copyEditionData";
254 Assignment1 = ("InstallExecuteSequence", "Not REMOVE=\"ALL\"", "end");
255 Assignment2 = ("AdminExecuteSequence", "", "end");
258 WindowsCustomAction gid_Customaction_CopyExtensionData
259 Name = "CopyExtensionData";
261 Source = "shlxtmsi.dll";
262 Target = "copyExtensionData";
264 Assignment1 = ("InstallExecuteSequence", "Not REMOVE=\"ALL\"", "RegisterExtensions");
265 Assignment2 = ("AdminExecuteSequence", "", "RegisterExtensions");
268 WindowsCustomAction gid_Customaction_RegCleanOld
269 Name = "RegCleanOld";
271 Source = "regcleanold.dll";
272 Target = "CleanCurUserOldSystemRegistryFromSetup";
274 Assignment1 = ("InstallExecuteSequence", "Not REMOVE=\"ALL\" And Not PATCH And Not ALLUSERS=\"\"", "end");
277 WindowsCustomAction gid_Customaction_Patch_Regpatchactivex_Patchactivexcontrol
278 Name = "PatchActiveXControl";
280 Source = "regpatchactivex.dll";
281 Target = "PatchActiveXControl";
283 Assignment1 = ("InstallExecuteSequence", "\&FEATURETEMPLATE=3", "end");
286 WindowsCustomAction gid_Customaction_Patch_SetProductInstallModeAction
287 Name = "SetProductInstallModeAction";
289 Source = "patchmsi.dll";
290 Target = "SetProductInstallMode";
292 Assignment1 = ("InstallExecuteSequence", "Not Installed", "FindRelatedProducts");
293 Assignment2 = ("InstallUISequence", "Not Installed", "FindRelatedProducts");
296 WindowsCustomAction gid_Customaction_Patch_InstallExchangeFiles
297 Name = "InstallExchangeFiles";
299 Source = "patchmsi.dll";
300 Target = "InstallPatchedFiles";
302 Assignment1 = ("InstallExecuteSequence", "Not Installed", "behind_InstallFinalize");
303 Assignment2 = ("AdminExecuteSequence", "", "behind_InstallFinalize");
306 WindowsCustomAction gid_Customaction_Langpack_Register_Extensions
307 Name = "RegisterExtensions";
309 Source = "lngpckinsthlp.dll";
310 Target = "RegisterExtensions";
312 Assignment1 = ("InstallExecuteSequence", "", "end");
313 Assignment2 = ("AdminExecuteSequence", "", "end");
316 WindowsCustomAction gid_Customaction_Langpack_Deregister_Extensions
317 Name = "DeregisterExtensions";
319 Source = "lngpckinsthlp.dll";
320 Target = "DeregisterExtensions";
322 Assignment1 = ("InstallExecuteSequence", "", "InstallInitialize");
325 WindowsCustomAction gid_Customaction_Patch_Register_Extensions
326 Name = "RegisterExtensions";
328 Source = "patchmsi.dll";
329 Target = "RegisterExtensions";
331 Assignment1 = ("InstallExecuteSequence", "", "end");
332 Assignment2 = ("AdminExecuteSequence", "", "end");
335 WindowsCustomAction gid_Customaction_Patch_Deregister_Extensions
336 Name = "DeregisterExtensions";
338 Source = "patchmsi.dll";
339 Target = "DeregisterExtensions";
341 Assignment1 = ("InstallExecuteSequence", "", "InstallInitialize");
344 WindowsCustomAction gid_Customaction_Patch_SetFeatureState
345 Name = "SetFeatureState";
347 Source = "patchmsi.dll";
348 Target = "SetFeatureState";
350 Assignment1 = ("InstallExecuteSequence", "Not Installed", "SetNewFeatureState");
353 WindowsCustomAction gid_Customaction_Patch_DeinstallExchangeFiles
354 Name = "DeinstallExchangeFiles";
356 Source = "patchmsi.dll";
357 Target = "UninstallPatchedFiles";
359 Assignment1 = ("InstallExecuteSequence", "Installed", "RemoveIniValues");
362 WindowsCustomAction gid_Customaction_Patch_Shutdownquickstarter
363 Name = "ShutDownQuickstarter";
365 Source = "patchmsi.dll";
366 Target = "ShutDownQuickstarter";
368 Assignment1 = ("ControlEvent", "DestinationFolder", "Next", "DoAction", "ShutDownQuickstarter", "1", "0");
369 Assignment2 = ("InstallExecuteSequence", "", "IsolateComponents");
372 WindowsCustomAction gid_Customaction_Patch_Isofficerunning
373 Name = "IsOfficeRunning";
375 Source = "patchmsi.dll";
376 Target = "IsOfficeRunning";
378 Assignment1 = ("ControlEvent", "ReadyToInstall", "InstallNow", "DoAction", "IsOfficeRunning", "1", "1");
379 Assignment2 = ("InstallExecuteSequence", "", "RunningOffice");
382 WindowsCustomAction gid_Customaction_Full_Isofficerunning
383 Name = "IsOfficeRunning";
385 Source = "shlxtmsi.dll";
386 Target = "IsOfficeRunning";
388 Assignment1 = ("InstallExecuteSequence", "", "RunningOffice");
391 WindowsCustomAction gid_Customaction_Langpack_Isofficerunning
392 Name = "IsOfficeRunning";
394 Source = "lngpckinsthlp.dll";
395 Target = "IsOfficeRunning";
397 Assignment1 = ("InstallExecuteSequence", "PATCH", "RunningOffice");
400 WindowsCustomAction gid_Customaction_CheckPatchList
401 Name = "CheckPatchList";
403 Source = "shlxtmsi.dll";
404 Target = "CheckPatchList";
406 Assignment1 = ("InstallExecuteSequence", "PATCH", "Patch1NotInstalled");
409 WindowsCustomAction gid_Customaction_Patch_SetUserInstallMode
410 Name = "SetUserInstallMode";
412 Source = "patchmsi.dll";
413 Target = "GetUserInstallMode";
415 Assignment1 = ("ControlEvent", "InstallWelcome", "Next", "DoAction", "SetUserInstallMode", "1", "1");
416 Assignment2 = ("ControlEvent", "InstallChangeFolder", "OK", "DoAction", "SetUserInstallMode", "1", "8");
417 Assignment3 = ("ControlCondition", "DestinationFolder", "Next", "Enable", "NOT INVALIDDIRECTORY And NOT PATCHISOLDER And NOT ISWRONGPRODUCT");
418 Assignment4 = ("ControlCondition", "DestinationFolder", "Next", "Disable", "INVALIDDIRECTORY Or PATCHISOLDER Or ISWRONGPRODUCT");
419 Assignment5 = ("ControlCondition", "DestinationFolder", "LabelStartInstall", "Show", "NOT INVALIDDIRECTORY And NOT PATCHISOLDER And NOT ISWRONGPRODUCT");
420 Assignment6 = ("ControlCondition", "DestinationFolder", "LabelInvalidDir", "Show", "INVALIDDIRECTORY");
421 Assignment7 = ("ControlCondition", "DestinationFolder", "LabelPatchOlder", "Show", "PATCHISOLDER");
422 Assignment8 = ("ControlCondition", "DestinationFolder", "LabelWrongProduct", "Show", "ISWRONGPRODUCT");
423 Assignment9 = ("ControlCondition", "DestinationFolder", "LabelStartInstall2", "Show", "NOT INVALIDDIRECTORY And NOT PATCHISOLDER And NOT ISWRONGPRODUCT");
424 Assignment10 = ("ControlCondition", "DestinationFolder", "LabelInvalidDir2", "Show", "INVALIDDIRECTORY");
425 Assignment11 = ("ControlCondition", "DestinationFolder", "LabelPatchOlder2", "Show", "PATCHISOLDER");
426 Assignment12 = ("ControlCondition", "DestinationFolder", "LabelWrongProduct2", "Show", "ISWRONGPRODUCT");
427 Assignment13 = ("InstallExecuteSequence", "Not Installed", "PatchIsOlder");
430 WindowsCustomAction gid_Customaction_Langpack_SetUserInstallMode
431 Name = "SetUserInstallMode";
433 Source = "lngpckinsthlp.dll";
434 Target = "GetUserInstallMode";
436 Assignment1 = ("ControlEvent", "InstallWelcome", "Next", "DoAction", "SetUserInstallMode", "1", "1");
437 Assignment2 = ("ControlEvent", "InstallChangeFolder", "OK", "DoAction", "SetUserInstallMode", "1", "8");
438 Assignment3 = ("ControlCondition", "DestinationFolder", "Next", "Enable", "NOT INVALIDDIRECTORY And NOT ISWRONGPRODUCT");
439 Assignment4 = ("ControlCondition", "DestinationFolder", "Next", "Disable", "INVALIDDIRECTORY Or ISWRONGPRODUCT");
440 Assignment5 = ("ControlCondition", "DestinationFolder", "LabelStartInstall", "Show", "NOT INVALIDDIRECTORY And NOT ISWRONGPRODUCT");
441 Assignment6 = ("ControlCondition", "DestinationFolder", "LabelInvalidDir", "Show", "INVALIDDIRECTORY");
442 Assignment7 = ("ControlCondition", "DestinationFolder", "LabelWrongProduct", "Show", "ISWRONGPRODUCT");
443 Assignment8 = ("ControlCondition", "DestinationFolder", "LabelStartInstall2", "Show", "NOT INVALIDDIRECTORY And NOT ISWRONGPRODUCT");
444 Assignment9 = ("ControlCondition", "DestinationFolder", "LabelInvalidDir2", "Show", "INVALIDDIRECTORY");
445 Assignment10 = ("ControlCondition", "DestinationFolder", "LabelWrongProduct2", "Show", "ISWRONGPRODUCT");
448 WindowsCustomAction gid_Customaction_MigrateInstallPath
449 Name = "MigrateInstallPath";
451 Source = "shlxtmsi.dll";
452 Target = "MigrateInstallPath";
454 Assignment1 = ("InstallExecuteSequence", "Not REMOVE=\"ALL\" And Not PATCH", "CostInitialize");
455 Assignment2 = ("InstallUISequence", "Not REMOVE=\"ALL\" And Not PATCH", "CostInitialize");
458 WindowsCustomAction gid_Customaction_CheckVersions
459 Name = "CheckVersions";
461 Source = "sn_tools.dll";
462 Target = "CheckVersions";
464 Assignment1 = ("InstallExecuteSequence", "NOT Installed", "NewProductFound");
465 Assignment2 = ("InstallUISequence", "NOT Installed", "NewProductFound");
468 WindowsCustomAction gid_Customaction_ShowReleaseNotes1
469 Name = "ShowReleaseNotesBefore";
471 Source = "relnotes.dll";
472 Target = "ShowReleaseNotesBefore";
474 Assignment1 = ("InstallExecuteSequence", "(Not Installed or ISPATCH) and Not REMOVE=\"ALL\"", "behind_InstallValidate");
477 WindowsCustomAction gid_Customaction_ShowReleaseNotes2
478 Name = "ShowReleaseNotesAfter";
480 Source = "relnotes.dll";
481 Target = "ShowReleaseNotesAfter";
483 Assignment1 = ("InstallExecuteSequence", "(Not Installed or ISPATCH) and Not REMOVE=\"ALL\"", "end");
486 WindowsCustomAction gid_Customaction_RebaseLibrariesonproperties
487 Name = "RebaseLibrariesOnProperties";
489 Source = "rebase.dll";
490 Target = "RebaseLibrariesOnProperties";
492 Assignment1 = ("InstallExecuteSequence", "Not REMOVE=\"ALL\"", "end");
493 Assignment2 = ("AdminExecuteSequence", "Not REMOVE=\"ALL\"", "end");
496 WindowsCustomAction gid_Customaction_ShowSurvey
497 Name = "ShowSurveyAfterUninstall";
499 Source = "relnotes.dll";
500 Target = "ShowSurveyAfter";
502 Assignment1 = ("InstallExecuteSequence", "REMOVE=\"ALL\" and Not UPGRADINGPRODUCTCODE", "end");