Форум программистов
 

Восстановите пароль или Зарегистрируйтесь на форуме, о проблемах и с заказом рекламы пишите сюда - alarforum@yandex.ru, проверяйте папку спам!

Вернуться   Форум программистов > Программная инженерия > Безопасность, Шифрование
Регистрация

Восстановить пароль
Повторная активизация e-mail

Купить рекламу на форуме - 42 тыс руб за месяц

Ответ
 
Опции темы Поиск в этой теме
Старый 16.04.2007, 18:56   #1
eL1tE
 
Регистрация: 15.04.2007
Сообщений: 6
По умолчанию Установщик.

Подскажите, пожалуйста, как сделать установщик, который бы без визуальных признаков (всяких окон, вопросов, кнопок ок и тд.) установил бы и запустил программу (или прописал ее в автозагрузку, что еще лучше). Или хотя бы просто засунул в нужную директорию exeшник. И еще вопрос, как сделать чтобы файл сам себя копировал в какую-либо заданную директорию?
eL1tE вне форума Ответить с цитированием
Старый 16.04.2007, 20:14   #2
rpy3uH
добрый няша
Старожил
 
Аватар для rpy3uH
 
Регистрация: 29.10.2006
Сообщений: 4,804
По умолчанию

вирусописатель юный!
в автозагрухку прописать класс Tregistry ключ HKLM\Software\Microsoft\Windows\Cur rentVersion\Run
копирование файла: CopyFile(Ex) (или Windows.CopyFile(Ex))
rpy3uH вне форума Ответить с цитированием
Старый 16.04.2007, 20:24   #3
eL1tE
 
Регистрация: 15.04.2007
Сообщений: 6
По умолчанию

А можно про последние 2 команды по-подробнее? А то в хэлпе их нету ((( С реестром я уже до этого разобрался.
eL1tE вне форума Ответить с цитированием
Старый 16.04.2007, 20:59   #4
rpy3uH
добрый няша
Старожил
 
Аватар для rpy3uH
 
Регистрация: 29.10.2006
Сообщений: 4,804
По умолчанию

copyfile
Код:
BOOL CopyFile(

    LPCTSTR lpExistingFileName,	// pointer to name of an existing file 
    LPCTSTR lpNewFileName,	// pointer to filename to copy to 
    BOOL bFailIfExists 	// flag for operation if file exists 
   );
lpExistingFileName

Points to a null-terminated string that specifies the name of an existing file. 

lpNewFileName

Points to a null-terminated string that specifies the name of the new file. 

bFailIfExists

Specifies how this operation is to proceed if a file of the same name as that specified by lpNewFileName already exists. If this parameter is TRUE and the new file already exists, the function fails. If this parameter is FALSE and the new file already exists, the function overwrites the existing file and succeeds.
copyfileex
Код:
BOOL CopyFileEx(

    LPCWSTR lpExistingFileName,	// pointer to name of an existing file
    LPCWSTR lpNewFileName,	// pointer to filename to copy to
    LPPROGRESS_ROUTINE lpProgressRoutine,	// pointer to the callback function
    LPVOID lpData,	// to be passed to the callback function
    LPBOOL pbCancel,	// flag that can be used to cancel the operation
    DWORD dwCopyFlags	// flags that specify how the file is copied
   );	
 

Parameters

lpExistingFileName

Points to a null-terminated string that specifies the name of an existing file.

lpNewFileName

Points to a null-terminated string that specifies the name of the new file.

lpProgressRoutine

Specifies the address of a callback function of type LPPROGRESS_ROUTINE that is called each time another portion of the file has been copied. This parameter can be NULL. For more information on the progress callback function, see CopyProgressRoutine.

lpData

Specifies an argument to be passed to the callback function. This parameter can be NULL.

pbCancel

Points to a Boolean variable that can be used to cancel the operation. If this flag is set to TRUE during the copy operation, the operation is canceled.

dwCopyFlags

Specifies how the file is to be copied. This parameter can be a combination of the following values:

Value	Meaning
COPY_FILE_FAIL_IF_EXISTS	The copy operation fails immediately if the target file already exists.
COPY_FILE_RESTARTABLE	Progress of the copy is tracked in the target file in case the copy fails. The failed copy can be restarted at a later time by specifying the same values for lpExistingFileName and lpNewFileName as those used in the call that failed.
rpy3uH вне форума Ответить с цитированием
Старый 16.06.2007, 12:18   #5
Viteef
stopfake.org
Участник клуба
 
Регистрация: 03.05.2007
Сообщений: 1,927
По умолчанию

Архив SFX
Viteef вне форума Ответить с цитированием
Ответ


Купить рекламу на форуме - 42 тыс руб за месяц

Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск


Похожие темы
Тема Автор Раздел Ответов Последнее сообщение
посоветуйте пожалуйста нормальный установщик BDE 3lander БД в Delphi 1 14.10.2007 00:31