Lm th? no ? t?m th?y ?ng d?n ci ?t c?a m?t ?ng d?ng vn ph?ng

D?ch tiu ? D?ch tiu ?
ID c?a bi: 234788 - Xem s?n ph?m m bi ny p d?ng vo.
Bung t?t c? | Thu g?n t?t c?

? Trang ny

TM T?T

Bi vi?t ny ch?ng t? lm th? no ? s? d?ng b? ci ?t Windows ? t?m th?y ?ng d?n ci ?t c?a Microsoft Office cc ?ng d?ng.

THNG TIN THM

Cc phin b?n c?a Microsoft Office l?n hn nm 2000 th? khng bao g?m cc ?ng d?n thng tin trong cc lin k?t t?t khi ci ?t. i?u ny lm nh v?y r?ng ty ch?n "Ch?y trn ?u tin dng" c th? ?c s? d?ng. Khi ty ch?n ny ?c s? d?ng, cc phm t?t s? xu?t hi?n, nhng cc ?ng d?ng s? khng ?c ci ?t trn cc kh khn ?a. Khi b?n b?m vo cc phm t?t cho l?n ?u tin, cc ?ng d?ng s? ?c ci ?t.

B?n c th? s? d?ng b? ci ?t Windows ? c ?c nh?ng con ?ng cc ?ng d?ng ? ci ?t Office 2000. Lm theo cc b?c ?c a ra d?i y ? t?o ra m?t ?ng d?ng giao di?n i?u khi?n bo co cc th m?c c?a m?t vn ph?ng ?c ci ?t ?ng d?ng.

Xy d?ng m?u

  1. T?o m?t ?ng d?ng giao di?n i?u khi?n tr?ng trong Visual C + +.
  2. T?o m?t t?p tin m?i ?c g?i l Main.CPP v dn m? sau trong c?a s? m?.
    #include <windows.h>
    #include <msi.h>
    #include <ostream.h>
    
    const char *Word = "{CC29E963-7BC2-11D1-A921-00A0C91E2AA2}";
    const char *Excel = "{CC29E96F-7BC2-11D1-A921-00A0C91E2AA2}";
    const char *PowerPoint = "{CC29E94B-7BC2-11D1-A921-00A0C91E2AA2}";
    const char *Access = "{CC29E967-7BC2-11D1-A921-00A0C91E2AA2}";
    const char *Office = "{00000409-78E1-11D2-B60F-006097C998E7}";
    
    int main(void)
    {
    	DWORD size = 300;
    	INSTALLSTATE installstate;
    	char *sPath;
    
    	sPath = new char[size];
            installstate = MsiGetComponentPath(
            Office,Word,sPath,&size);
    
    	if ((installstate == INSTALLSTATE_LOCAL) || 
                (installstate == INSTALLSTATE_SOURCE)) 
    	  cout << "Installed in: " << sPath << endl;
    	delete sPath;
    	return 0;
    }
  3. B?m vo cc D an tr?nh n v sau b?m Thit t ? a ln h?p tho?i thi?t ?t d? n.
  4. B?m vo cc Lin k?t tab v thm MSI.lib trong danh sch ?i t?ng/th vi?n m-un.
  5. Ch?y chng tr?nh. N s? hi?n th? ?ng d?n c?a t?p ni Microsoft Word ?c ci ?t.

    CHU Y: Bao g?m trong cc m? l GUIDS lin k?t v?i Word, Excel, PowerPoint v truy c?p. ? t?m th?y ?ng d?n cho ?ng d?ng vn ph?ng khc, v?t qua trong tn c?a cc ?ng d?ng nh tham s? th? hai c?a MsiGetComponentPath ch?c nng.

    T?m ?ng d?n c?a ?ng d?ng Office XP, thay th? cc cc h?ng s? ? trn v?i cc sau y.
    const char *Word = "{8E46FEFA-D973-6294-B305-E968CEDFFCB9}";
    const char *Excel = "{5572D282-F5E5-11D3-A8E8-0060083FD8D3}";
    const char *PowerPoint = "{FC780C4C-F066-40E0-B720-DA0F779B81A9}";
    const char *Access = "{CC29E967-7BC2-11D1-A921-00A0C91E2AA3}";
    const char *Office = "{20280409-6000-11D3-8CFE-0050048383C9}";
    					
    T?m ?ng d?n c?a ?ng d?ng Office 2003, thay th? cc h?ng s? ? trn v?i cc sau y.
    const char *Word = "{1EBDE4BC-9A51-4630-B541-2561FA45CCC5}";
    const char *Excel = "{A2B280D4-20FB-4720-99F7-40C09FBCE10A}";
    const char *PowerPoint = "{C86C0B92-63C0-4E35-8605-281275C21F97}";
    const char *Access = "{F2D782F8-6B14-4FA4-8FBA-565CDDB9B2A8}";
    const char *Office = "{90110409-6000-11D3-8CFE-0150048383C9}";
    					
    T?m ?ng d?n c?a m?t ?ng d?ng vn ph?ng 2007, thay th? cc h?ng s? ? trn v?i cc sau y.
    const char *Word = "{0638C49D-BB8B-4CD1-B191-051E8F325736}";
    const char *Excel = "{0638C49D-BB8B-4CD1-B191-052E8F325736}";
    const char *PowerPoint = " {0638C49D-BB8B-4CD1-B191-053E8F325736}";
    const char *Access = " {0638C49D-BB8B-4CD1-B191-054E8F325736}";
    const char *Office = " {0638C49D-BB8B-4CD1-B191-050E8F325736}";
    					

THAM KH?O

B?n c th? t?i v? Windows Installer SDK, bao g?m MSI.LIB t?p tin, t?:
http://www.Microsoft.com/downloads/details.aspx?FamilyID = e96f8abc-62 c 3-4cc3-93ad-bfc98e3ae4a3 & DisplayLang = en
? bi?t thm thng tin v? vn ph?ng t? ?ng ha, xin vui l?ng truy c?p vo cc Pht tri?n vn ph?ng Microsoft h? tr? trang web t?i:
http://support.Microsoft.com/ofd

Thu?c tnh

ID c?a bi: 234788 - L?n xem xt sau cng: 06 Thang Mi 2011 - Xem xt l?i: 3.0
p d?ng
  • Microsoft Office Access 2007
  • Microsoft Office Excel 2007
  • Microsoft Office PowerPoint 2007
  • Microsoft Office Word 2007
  • Microsoft Office Access 2003
  • Microsoft Office PowerPoint 2003
  • Microsoft Access 2002 Standard Edition
  • Microsoft Excel 2002 Standard Edition
  • Microsoft PowerPoint 2002 Standard Edition
  • Microsoft Word 2002 Standard Edition
  • Microsoft Access 2000 Standard Edition
  • Microsoft Excel 2000 Standard Edition
  • Microsoft PowerPoint 2000 Standard Edition
  • Microsoft Word 2000 Standard Edition
T? kha:
kbhowto kbmt KB234788 KbMtvi
My d?ch
QUAN TRONG: Bi vi?t ny ?c d?ch b?ng ph?n m?m d?ch my c?a Microsoft ch? khng ph?i do con ng?i d?ch. Microsoft cung c?p cc bi vi?t do con ng?i d?ch v c? cc bi vi?t do my d?ch ? b?n c th? truy c?p vo t?t c? cc bi vi?t trong C s? Ki?n th?c c?a chng ti b?ng ngn ng? c?a b?n. Tuy nhin, bi vi?t do my d?ch khng ph?i lc no c?ng hon h?o. Lo?i bi vi?t ny c th? ch?a cc sai st v? t? v?ng, c php ho?c ng? php, gi?ng nh m?t ng?i n?c ngoi c th? m?c sai st khi ni ngn ng? c?a b?n. Microsoft khng ch?u trch nhi?m v? b?t k? s? thi?u chnh xc, sai st ho?c thi?t h?i no do vi?c d?ch sai n?i dung ho?c do ho?t ?ng s? d?ng c?a khch hng gy ra. Microsoft c?ng th?ng xuyn c?p nh?t ph?n m?m d?ch my ny.
Nh?p chu?t vo y ? xem b?n ti?ng Anh c?a bi vi?t ny:234788

Cung cp Phan hi

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com